Module: check_mk
Branch: master
Commit: 0b700737fdf4140b1c05f43e3269854487940575
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0b700737fdf414…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Mar 4 17:46:42 2016 +0100
3264 FIX Fix display of values in graphs that are < 1.0
---
.werks/3264 | 10 ++++++++++
ChangeLog | 1 +
web/htdocs/lib.py | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/3264 b/.werks/3264
new file mode 100644
index 0000000..a69e02a
--- /dev/null
+++ b/.werks/3264
@@ -0,0 +1,10 @@
+Title: Fix display of values in graphs that are < 1.0
+Level: 2
+Component: multisite
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1457109954
+
+
diff --git a/ChangeLog b/ChangeLog
index 2d0b64d..f468ae3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -68,6 +68,7 @@
* 3248 FIX: Avoid broken list of context filters and case of a BI error
* 3251 FIX: Fix sorting of entries in Views sidebar element
* 3230 FIX: Slightly improved popup menu positioning...
+ * 3264 FIX: Fix display of values in graphs that are < 1.0
WATO:
* 3244 WATO BI Module: swap order of aggregation function and child node
selection...
diff --git a/web/htdocs/lib.py b/web/htdocs/lib.py
index b99acab..cfcb124 100644
--- a/web/htdocs/lib.py
+++ b/web/htdocs/lib.py
@@ -596,7 +596,7 @@ def calculate_physical_precision(v, precision):
places_before_comma = exponent + 1
places_after_comma = precision - places_before_comma
- return scale_symbols[scale], places_after_comma, 1000**abs(scale)
+ return scale_symbols[scale], places_after_comma, 1000 ** scale
def nic_speed_human_readable(bits_per_second):