diff options
author | Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be> | 2017-09-14 23:58:38 +0200 |
---|---|---|
committer | Aaron Marcher <me@drkhsh.at> | 2017-09-16 13:46:40 +0200 |
commit | 72a5e52a35d0a133cafa1a7b5b86f4549589965d (patch) | |
tree | 8604390fb10673b7979bd4768ac2b513a910d944 /config.def.h | |
parent | 57aa6a51647972094021e65d23099b105f00f37a (diff) |
slstatus: add cpu_iowait
This commit introduces the cpu_iowait item, this is the percentage
of cpu time spent waiting on disks. High numbers typically indicate
that your system is not responsive due to disk IO.
This commit also avoid sleeping inside the cpu_perc and cpu_iowait
functions: waiting in either one implies lost info for the other.
Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index 0e28d1e..6370008 100644 --- a/config.def.h +++ b/config.def.h @@ -16,6 +16,7 @@ static const char unknown_str[] = "n/a"; * battery_power battery power usage battery name * battery_state battery charging state battery name * cpu_perc cpu usage in percent NULL + * cpu_iowait cpu iowait in percent NULL * cpu_freq cpu frequency in MHz NULL * datetime date and time format string * disk_free free disk space in GB mountpoint path |