Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Action.c
Original file line number Diff line number Diff line change
Expand Up @@ -781,9 +781,12 @@ static Htop_Reaction actionHelp(State* st) {
addbartext(CRT_colors[CPU_GUEST], "/", "guest");
addbartext(CRT_colors[CPU_IOWAIT], "/", "io-wait");
addbartext(CRT_colors[BAR_SHADOW], " ", "used%");
} else if (CRT_colorScheme == COLORSCHEME_MONOCHROME) {
addbartext(CRT_colors[CPU_STEAL], "/-/-/", "virtualized");
addbartext(CRT_colors[BAR_SHADOW], " ", "used%");
} else {
addbartext(CRT_colors[CPU_GUEST], "/", "virt");
addbartext(CRT_colors[BAR_SHADOW], " ", "used%");
addbartext(CRT_colors[CPU_STEAL], "/", "virtualized");
addbartext(CRT_colors[BAR_SHADOW], " ", "used%");
}
addattrstr(CRT_colors[BAR_BORDER], "]");

Expand Down
12 changes: 0 additions & 12 deletions CPUMeter.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ static const int CPUMeter_attributes[] = {
CPU_IOWAIT
};

static const int CPUMeter_attributes_summary[] = {
CPU_NICE,
CPU_NORMAL,
CPU_SYSTEM,
CPU_GUEST
};

typedef struct CPUMeterData_ {
unsigned int cpus;
Meter** meters;
Expand Down Expand Up @@ -89,11 +82,6 @@ static void CPUMeter_updateValues(Meter* this) {

const Machine* host = this->host;
const Settings* settings = host->settings;
if (settings->detailedCPUTime) {
this->curAttributes = CPUMeter_attributes;
} else {
this->curAttributes = CPUMeter_attributes_summary;
}

unsigned int cpu = this->param;
if (cpu > host->existingCPUs) {
Expand Down
8 changes: 6 additions & 2 deletions DiskIOMeter.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,10 @@ static void DiskIOMeter_updateMode(Meter* this, MeterModeId mode) {
this->mode = mode;

Meter_setMode(data->diskIORateMeter, mode);

// DiskIOTimeMeter does not support "Graph2" mode
if (mode == GRAPH2_METERMODE)
mode = GRAPH_METERMODE;
Meter_setMode(data->diskIOTimeMeter, mode);

this->h = MAXIMUM(data->diskIORateMeter->h, data->diskIOTimeMeter->h);
Expand All @@ -310,7 +314,7 @@ const MeterClass DiskIORateMeter_class = {
},
.updateValues = DiskIORateMeter_updateValues,
.defaultMode = TEXT_METERMODE,
.supportedModes = METERMODE_DEFAULT_SUPPORTED,
.supportedModes = METERMODE_DEFAULT_SUPPORTED | (1 << GRAPH2_METERMODE),
.maxItems = 2,
.isPercentChart = false,
.total = 1.0,
Expand Down Expand Up @@ -348,7 +352,7 @@ const MeterClass DiskIOMeter_class = {
},
.updateValues = DiskIOMeter_updateValues,
.defaultMode = TEXT_METERMODE,
.supportedModes = METERMODE_DEFAULT_SUPPORTED,
.supportedModes = METERMODE_DEFAULT_SUPPORTED | (1 << GRAPH2_METERMODE),
.isMultiColumn = true,
.name = "DiskIO",
.uiName = "Disk IO",
Expand Down
Loading
Loading