mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Use integer type for item count instead of char
This commit is contained in:

committed by
cgzones

parent
59ef15b2ad
commit
43d274a617
@ -51,8 +51,7 @@ static void CPUMeter_updateValues(Meter* this, char* buffer, int size) {
|
||||
int cpu = this->param;
|
||||
if (cpu > this->pl->cpuCount) {
|
||||
xSnprintf(buffer, size, "absent");
|
||||
int items = this->curItems;
|
||||
for (int i = 0; i < items; i++)
|
||||
for (uint8_t i = 0; i < this->curItems; i++)
|
||||
this->values[i] = 0;
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user