summaryrefslogtreecommitdiffstats
path: root/htop.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2007-11-09 00:40:59 +0000
committerHisham Muhammad <hisham@gobolinux.org>2007-11-09 00:40:59 +0000
commit855d9eaf9abb82c4775c5be143e71c9de1cd22b3 (patch)
treee341c677065802ee5c8e7103259cb0b1eb2f5975 /htop.c
parentb70b35ea659d9a859de3cb480580ceb98a6b63e0 (diff)
IO-wait time now counts as idle time, which is a more
accurate description. It is still available in split time, now called detailed CPU time. (thanks to Samuel Thibault for the report)
Diffstat (limited to 'htop.c')
-rw-r--r--htop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/htop.c b/htop.c
index d5bebd47..15e3c3e9 100644
--- a/htop.c
+++ b/htop.c
@@ -63,13 +63,13 @@ void showHelp(ProcessList* pl) {
mvaddstr(3, 0, "CPU usage bar: ");
#define addattrstr(a,s) attrset(a);addstr(s)
addattrstr(CRT_colors[BAR_BORDER], "[");
- if (pl->expandSystemTime) {
+ if (pl->detailedCPUTime) {
addattrstr(CRT_colors[CPU_NICE], "low"); addstr("/");
addattrstr(CRT_colors[CPU_NORMAL], "normal"); addstr("/");
addattrstr(CRT_colors[CPU_KERNEL], "kernel"); addstr("/");
- addattrstr(CRT_colors[CPU_IOWAIT], "io-wait"); addstr("/");
addattrstr(CRT_colors[CPU_IRQ], "irq"); addstr("/");
- addattrstr(CRT_colors[CPU_SOFTIRQ], "soft-irq");
+ addattrstr(CRT_colors[CPU_SOFTIRQ], "soft-irq"); addstr("/");
+ addattrstr(CRT_colors[CPU_IOWAIT], "io-wait");
addattrstr(CRT_colors[BAR_SHADOW], " used%");
} else {
addattrstr(CRT_colors[CPU_NICE], "low-priority"); addstr("/");