mirror of https://github.com/xzeldon/htop.git
TasksMeter: save some float casts
Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
This commit is contained in:
parent
fc2377f052
commit
2d1b6f4783
|
@ -31,7 +31,7 @@ static void TasksMeter_updateValues(Meter* this) {
|
|||
this->values[3] = MINIMUM(pl->runningTasks, pl->activeCPUs);
|
||||
this->total = pl->totalTasks;
|
||||
|
||||
xSnprintf(this->txtBuffer, sizeof(this->txtBuffer), "%d/%d", (int) this->values[3], (int) this->total);
|
||||
xSnprintf(this->txtBuffer, sizeof(this->txtBuffer), "%u/%u", MINIMUM(pl->runningTasks, pl->activeCPUs), pl->totalTasks);
|
||||
}
|
||||
|
||||
static void TasksMeter_display(const Object* cast, RichString* out) {
|
||||
|
|
Loading…
Reference in New Issue