Module: check_mk
Branch: master
Commit: 1145d00d8ab101d701a018895a88ff6e120dc5ac
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1145d00d8ab101…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue May 22 11:44:10 2018 +0200
Revert "Fixed forgotten ps.include file regarding cpu utilization of processes in
Linux"
This reverts commit fc0a8c85fab0ee67393ccbb9d36344e59068e581.
---
checks/ps.include | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/ps.include b/checks/ps.include
index 4a5f40c..78475b7 100644
--- a/checks/ps.include
+++ b/checks/ps.include
@@ -439,10 +439,10 @@ def check_ps_common(item, params, parsed, cpu_cores = 1, info_name =
"processes"
except MKCounterWrapped, e:
cputime = 0
- pcpu = cputime * 100 / cpu_cores
+ pcpu = cputime * 100
process.append(("pid", (pid, "")))
else:
- pcpu = savefloat(process_info[3]) / cpu_cores
+ pcpu = savefloat(process_info[3])
percent_cpu += pcpu
process.append(("cpu usage", (pcpu, "%")))