summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorKurt Van Dijck <dev.kurt@vandijck-laurijssen.be>2017-09-14 23:58:38 +0200
committerAaron Marcher <me@drkhsh.at>2017-09-16 13:46:40 +0200
commit77bac14e9c6f0ec8417ef0b747945da72116bb7d (patch)
tree8604390fb10673b7979bd4768ac2b513a910d944 /config.def.h
parentcc5f9cad3e77a58553ff07f249a770c07217eef7 (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.h1
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