Module: check_mk
Branch: master
Commit: ad0692e6652ac6bc75289a90a7dc4f743404da7e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ad0692e6652ac6…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon May 16 13:51:43 2011 +0200
Multisite painters for perfdata: keep unit intact
---
web/plugins/views/painters.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/web/plugins/views/painters.py b/web/plugins/views/painters.py
index 57c13ef..91b4a0f 100644
--- a/web/plugins/views/painters.py
+++ b/web/plugins/views/painters.py
@@ -453,8 +453,9 @@ def paint_perfdata_nth_value(row, n):
return "", "" # too few values in perfdata
varname, rest = parts[n].split("=")
number = rest.split(';')[0]
- while len(number) > 0 and not number[-1].isdigit():
- number = number[:-1]
+ # Remove unit. Why should we?
+ # while len(number) > 0 and not number[-1].isdigit():
+ # number = number[:-1]
return "", number
except Exception, e:
return "", str(e)