summaryrefslogtreecommitdiffstats
path: root/TasksMeter.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-03-16 23:01:48 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-03-16 23:02:03 -0300
commit272e2d9b3459ceb3fe2f5ae34a07e44df6c45997 (patch)
treeb7a7c2c68c3ebbe3b91f23a86da73ac352910cf5 /TasksMeter.c
parent9ff5d2b243472ae73d10dafdd7c0e24dc5052f6d (diff)
Major advances in FreeBSD port.
Diffstat (limited to 'TasksMeter.c')
-rw-r--r--TasksMeter.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/TasksMeter.c b/TasksMeter.c
index 7a3e5a47..f3764d64 100644
--- a/TasksMeter.c
+++ b/TasksMeter.c
@@ -19,7 +19,14 @@ int TasksMeter_attributes[] = {
};
static void TasksMeter_setValues(Meter* this, char* buffer, int len) {
- Platform_setTasksValues(this);
+ ProcessList* pl = this->pl;
+ this->values[0] = pl->kernelThreads;
+ this->values[1] = pl->userlandThreads;
+ this->values[2] = pl->totalTasks - pl->kernelThreads - pl->userlandThreads;
+ this->values[3] = pl->runningTasks;
+ if (pl->totalTasks > this->total) {
+ this->total = pl->totalTasks;
+ }
if (this->pl->settings->hideKernelThreads) {
this->values[0] = 0;
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy