summaryrefslogtreecommitdiffstats
path: root/TasksMeter.c
diff options
context:
space:
mode:
Diffstat (limited to 'TasksMeter.c')
-rw-r--r--TasksMeter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/TasksMeter.c b/TasksMeter.c
index 9fb6c804..29d3dd1b 100644
--- a/TasksMeter.c
+++ b/TasksMeter.c
@@ -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) {