summaryrefslogtreecommitdiffstats
path: root/Meter.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2011-11-18 06:08:56 +0000
committerHisham Muhammad <hisham@gobolinux.org>2011-11-18 06:08:56 +0000
commit7ca10817122d3b7b30fabb1cadb75e5ee14b364e (patch)
tree14fa282dcad8eac9401fa463484b0b1693f43e1f /Meter.c
parent38856488815711138aa9d0ba32cca66694717171 (diff)
Mega-commit with features and tweaks for 1.0:
* Performance improvements * Support for splitting CPU meters into two or four columns (thanks to Wim Heirman) * Switch from PLPA, which is now deprecated, to HWLOC. * Bring back support for native Linux sched_setaffinity, so we don't have to use HWLOC where we don't need to. * Support for typing in user names and column fields in selection panels.
Diffstat (limited to 'Meter.c')
-rw-r--r--Meter.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/Meter.c b/Meter.c
index 8c3cc50f..97b1dc4e 100644
--- a/Meter.c
+++ b/Meter.c
@@ -130,8 +130,13 @@ MeterType* Meter_types[] = {
&TasksMeter,
&UptimeMeter,
&BatteryMeter,
- &AllCPUsMeter,
&HostnameMeter,
+ &AllCPUsMeter,
+ &AllCPUs2Meter,
+ &LeftCPUsMeter,
+ &RightCPUsMeter,
+ &LeftCPUs2Meter,
+ &RightCPUs2Meter,
NULL
};
@@ -147,9 +152,9 @@ Meter* Meter_new(ProcessList* pl, int param, MeterType* type) {
this->values = calloc(sizeof(double), type->items);
this->total = type->total;
this->caption = strdup(type->caption);
- Meter_setMode(this, type->mode);
if (this->type->init)
this->type->init(this);
+ Meter_setMode(this, type->mode);
return this;
}

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