Module: check_mk
Branch: master
Commit: b8b98018c14a9684369576799f146aafca586b09
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b8b98018c14a96…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Jan 28 14:43:39 2016 +0100
Output precision of bar with 4 instead of 6 digits
---
web/plugins/metrics/check_mk.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/plugins/metrics/check_mk.py b/web/plugins/metrics/check_mk.py
index 9698ae4..5314ba5 100644
--- a/web/plugins/metrics/check_mk.py
+++ b/web/plugins/metrics/check_mk.py
@@ -191,7 +191,7 @@ unit_info["%/m"] = {
unit_info["bar"] = {
"title" : _("Bar"),
"symbol" : _("bar"),
- "render" : lambda v: physical_precision(v, 6, _("bar")),
+ "render" : lambda v: physical_precision(v, 4, _("bar")),
}
unit_info["pa"] = {