Module: check_mk
Branch: master
Commit: e40d6749fb3d1815548d5d6f3a00ca72041906e1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e40d6749fb3d18…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Mar 7 21:16:43 2013 +0100
BI: fixed bug in aggregation count
---
ChangeLog | 3 +++
web/htdocs/bi.py | 2 +-
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 46b2f88..bd4af74 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -572,6 +572,9 @@
Checks & Agents:
* FIX: windows agent: fixed possible crash in eventlog section
+ BI:
+ * FIX: fixed bug in aggregation count (thanks Neil)
+
1.2.0p4:
WATO:
* FIX: fixed detection of existing groups when creating new groups
diff --git a/web/htdocs/bi.py b/web/htdocs/bi.py
index 2439f1b..74fc22d 100644
--- a/web/htdocs/bi.py
+++ b/web/htdocs/bi.py
@@ -1232,7 +1232,7 @@ config.aggregation_functions["worst"] = aggr_worst
config.aggregation_functions["best"] = aggr_best
def aggr_countok_convert(num, count):
- if num.endswith('%'):
+ if str(num).endswith('%'):
return int(num[:-1]) / 100.0 * count
else:
return int(num)