mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 20:24:35 +03:00
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.
This commit is contained in:
9
Meter.c
9
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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user