diff --git a/sysstat-post-process.py b/sysstat-post-process.py index 52cabbf..5a302d6 100755 --- a/sysstat-post-process.py +++ b/sysstat-post-process.py @@ -506,7 +506,7 @@ def process_pidstat(log_file): for field_name, val in fields.items(): names = {"cmd": command, "pid": pid, "type": field_name} desc["type"] = "NonBusy-CPU" if field_name == "wait" else "Busy-CPU" - sample = {"end": time_ms, "value": val} + sample = {"end": time_ms, "value": val / 100} metrics.log_sample("pidstat", desc, names, sample) fh.close() diff --git a/sysstat-stop b/sysstat-stop index d2519d1..d109c8a 100755 --- a/sysstat-stop +++ b/sysstat-stop @@ -9,12 +9,13 @@ if [ -e sysstat-pids.txt ]; then while read pid; do kill -s SIGINT $pid done