Skip to content

Commit

Permalink
TasksMeter: remove code for auto-updating "total"
Browse files Browse the repository at this point in the history
  • Loading branch information
Explorer09 committed Jun 28, 2024
1 parent ce60dee commit 71e5eae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions TasksMeter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 71e5eae

Please sign in to comment.