Eliminar calculo innecesario
Signed-off-by: somebody_master <somebody_master@somebodyserver.mooo.com>
This commit is contained in:
parent
c234419a0b
commit
6a855f6f5e
@ -164,7 +164,7 @@ std::string CpuMon::obtenerBarra(float *porcentaje, uint8_t *cpu) {
|
||||
|
||||
// Bucle para almohadillas
|
||||
int num_veces = (int)(ancho * *porcentaje);
|
||||
for (uint16_t i = 0; i < (int)(ancho * *porcentaje); i++) {
|
||||
for (uint16_t i = 0; i < num_veces; i++) {
|
||||
barra.append("#");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user