diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-01-23 03:08:21 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-01-23 03:08:21 -0200 |
commit | c2108e5a482dfb8760849bb01264ed4bdb9f604f (patch) | |
tree | 29bd336760c5ca9cbebed5e4a1e007642064cbc4 /TasksMeter.c | |
parent | 3383d8e5561dfc6fb2b65e0a194df94ccb5e08af (diff) |
Another mega-patch for the refactoring process.
Kinda runs, but functionality from the original main loop
is still missing. Patience.
Diffstat (limited to 'TasksMeter.c')
-rw-r--r-- | TasksMeter.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/TasksMeter.c b/TasksMeter.c index adcc55d9..7a3e5a47 100644 --- a/TasksMeter.c +++ b/TasksMeter.c @@ -20,7 +20,10 @@ int TasksMeter_attributes[] = { static void TasksMeter_setValues(Meter* this, char* buffer, int len) { Platform_setTasksValues(this); - snprintf(buffer, len, "%d/%d", (int) this->values[0], (int) this->total); + if (this->pl->settings->hideKernelThreads) { + this->values[0] = 0; + } + snprintf(buffer, len, "%d/%d", (int) this->values[3], (int) this->total); } static void TasksMeter_display(Object* cast, RichString* out) { |