TasksMeter: save some float casts

Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
This commit is contained in:
Explorer09 2021-08-14 09:24:35 +08:00 committed by BenBE
parent fc2377f052
commit 2d1b6f4783
1 changed files with 1 additions and 1 deletions

View File

@ -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) {