mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Embracing branches
This commit is contained in:
@ -163,10 +163,13 @@ static void CPUMeterCommonInit(Meter* this, int ncol) {
|
||||
for (int i = 0; i < count; i++) {
|
||||
if (!meters[i])
|
||||
meters[i] = Meter_new(this->pl, start + i + 1, (const MeterClass*) Class(CPUMeter));
|
||||
|
||||
Meter_init(meters[i]);
|
||||
}
|
||||
|
||||
if (this->mode == 0)
|
||||
this->mode = BAR_METERMODE;
|
||||
|
||||
int h = Meter_modes[this->mode]->h;
|
||||
this->h = h * ((count + ncol - 1) / ncol);
|
||||
}
|
||||
|
Reference in New Issue
Block a user