]> granicus.if.org Git - sysstat/commit
Introduce new SP_VALUE_100() macro and use it in pidstat
authorPeter Schiffer <pschiffe@redhat.com>
Mon, 7 Mar 2016 12:25:24 +0000 (13:25 +0100)
committerPeter Schiffer <pschiffe@redhat.com>
Mon, 7 Mar 2016 12:25:24 +0000 (13:25 +0100)
commit52977c479d3de1cb2535f896273d518326c26722
tree39253d639dce74e1c545d27e4e5c76b30dca2511
parente12a6f85aa231d5241fff6cdc718716bea7551d5
Introduce new SP_VALUE_100() macro and use it in pidstat

Under specific loads, pidstat can output values bigger than 100% in CPU
statistics caused by inaccurate read of statistics provided by kernel.

This patch adds new SP_VALUE_100() macro which limits value to 100 for these
statistics, so the output can be correctly interpreted.
common.h
pidstat.c