Skip to content

Commit 2d1b6f4

Browse files
Explorer09BenBE
authored andcommitted
TasksMeter: save some float casts
Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
1 parent fc2377f commit 2d1b6f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

TasksMeter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static void TasksMeter_updateValues(Meter* this) {
3131
this->values[3] = MINIMUM(pl->runningTasks, pl->activeCPUs);
3232
this->total = pl->totalTasks;
3333

34-
xSnprintf(this->txtBuffer, sizeof(this->txtBuffer), "%d/%d", (int) this->values[3], (int) this->total);
34+
xSnprintf(this->txtBuffer, sizeof(this->txtBuffer), "%u/%u", MINIMUM(pl->runningTasks, pl->activeCPUs), pl->totalTasks);
3535
}
3636

3737
static void TasksMeter_display(const Object* cast, RichString* out) {

0 commit comments

Comments
 (0)