From 4dcff0e1bac985bd352ec0e1c2a77db1d6f4a364 Mon Sep 17 00:00:00 2001 From: Explorer09 Date: Mon, 13 Nov 2023 02:41:38 +0800 Subject: [PATCH] TasksMeter: remove code for auto-updating "total" --- TasksMeter.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/TasksMeter.c b/TasksMeter.c index e87813353..f522b753b 100644 --- a/TasksMeter.c +++ b/TasksMeter.c @@ -34,7 +34,6 @@ static void TasksMeter_updateValues(Meter* this) { this->values[1] = pt->userlandThreads; this->values[2] = pt->totalTasks - pt->kernelThreads - pt->userlandThreads; this->values[3] = MINIMUM(pt->runningTasks, host->activeCPUs); - this->total = pt->totalTasks; xSnprintf(this->txtBuffer, sizeof(this->txtBuffer), "%u/%u", MINIMUM(pt->runningTasks, host->activeCPUs), pt->totalTasks); } @@ -75,7 +74,7 @@ const MeterClass TasksMeter_class = { .supportedModes = METERMODE_DEFAULT_SUPPORTED, .maxItems = 4, .isPercentChart = false, - .total = 100.0, + .total = 1.0, .attributes = TasksMeter_attributes, .name = "Tasks", .uiName = "Task counter",