slstatus: add cpu_iowait
authorKurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
Thu, 14 Sep 2017 21:58:38 +0000 (23:58 +0200)
committerAaron Marcher <me@drkhsh.at>
Sat, 16 Sep 2017 11:46:40 +0000 (13:46 +0200)
commit72a5e52a35d0a133cafa1a7b5b86f4549589965d
tree8604390fb10673b7979bd4768ac2b513a910d944
parent57aa6a51647972094021e65d23099b105f00f37a
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>
config.def.h
slstatus.c