Module: check_mk
Branch: master
Commit: d06088f1d0ad96c15798afc71f1970a0febf5d7c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d06088f1d0ad96…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Feb 19 16:43:01 2013 +0100
FIX: winperf_processor - fixed wrong calculations of usage
---
ChangeLog | 1 +
checks/winperf_processor | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2acd725..a2dd1e2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -27,6 +27,7 @@
1.2.2b4:
Checks & Agents:
* FIX: smart - not trying to parse unhandled lines to prevent errors
+ * FIX: winperf_processor - fixed wrong calculations of usage
Multisite:
* FIX: Fixed problem with error during localization scanning
diff --git a/checks/winperf_processor b/checks/winperf_processor
index 80f66b1..2fb9397 100644
--- a/checks/winperf_processor
+++ b/checks/winperf_processor
@@ -61,7 +61,7 @@ def check_winperf_util(item, params, info):
#
# 1 tick = 100ns, convert to seconds
cpusecs_per_sec = ticks_per_sec / 10000000.0
- used_perc = (100.0 * num_cpus) * (1 - cpusecs_per_sec)
+ used_perc = 100 * (1 - cpusecs_per_sec)
if used_perc < 0:
used_perc = 0