Module: check_mk
Branch: master
Commit: 5d879749e820fae88e7cafdb48082660ebc568f7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5d879749e820fa…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Feb 19 13:36:39 2015 +0100
Fix scaling of values (lead to wrong Perf-O-Meters)
---
web/htdocs/metrics.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/metrics.py b/web/htdocs/metrics.py
index 3c0b52f..8f3134a 100644
--- a/web/htdocs/metrics.py
+++ b/web/htdocs/metrics.py
@@ -147,7 +147,7 @@ def translate_metrics(perf_data, check_command):
scale = translation_entry.get("scale", 1)
new_entry = {
- "value" : float_or_int(entry[1]),
+ "value" : float_or_int(entry[1]) * scale,
"orig_name" : varname,
"scalar" : {},
}