]> granicus.if.org Git - sysstat/commit
mpstat: Check for possible division by zero
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 1 Apr 2018 06:18:56 +0000 (08:18 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 1 Apr 2018 06:18:56 +0000 (08:18 +0200)
commit33de14aa419d3b263b943d58841b559d9c60eeb6
treebe7d48e252b56ee8f536c19899609befc9c0f727
parenta63e87996fd5a214ca7e7c511c713877d8d94300
mpstat: Check for possible division by zero

Reassure Coverity by making sure that the total number of jiffies spent
by all processors/nodes is not zero.
This would be possible only if all processors were tickless.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
mpstat.c