Module: check_mk
Branch: master
Commit: 6fad806e5bc83705545aa51b59b9f5f294b7f8f1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6fad806e5bc837…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Thu Nov 30 14:56:22 2017 +0100
check_cpu_util_unix: Remove bogus int call rounding the current time. Why was this ever
there in the first place?
Change-Id: I8ad015054e71fa17f7162399930ebc9a17e64739
---
checks/cpu_util.include | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/cpu_util.include b/checks/cpu_util.include
index 89b7c9d..25e53ce 100644
--- a/checks/cpu_util.include
+++ b/checks/cpu_util.include
@@ -135,7 +135,7 @@ def check_cpu_util(util, params, this_time=None, cores=None):
# - 8 - guest: time spent in guest OK
# - 9 - guest_nice: time spent in niced guest OK
def check_cpu_util_unix(values, params, cores = None):
- this_time = int(time.time())
+ this_time = time.time()
# Compute jiffi-differences of all relevant counters
diff_values = []
n = 0