Module: check_mk
Branch: master
Commit: 0104ca6d449dff8ffa5502b987e13dc52c6fe49c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0104ca6d449dff…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Oct 10 15:30:53 2012 +0200
multisite: fixed garbled description for sorter 'Service performance data'
---
ChangeLog | 1 +
web/plugins/views/sorters.py | 6 +++---
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c40c691..f572302 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -21,6 +21,7 @@
* WATO Folder Filter no longer available in single host views
* Added new painters "Service check command expanded" and
"Host check command expanded"
+ * FIX: Corrected garbled description for sorter "Service Performance data"
Livestatus:
* Added new table statehist, used for SLA queries
diff --git a/web/plugins/views/sorters.py b/web/plugins/views/sorters.py
index dcab883..cd7f0b4 100644
--- a/web/plugins/views/sorters.py
+++ b/web/plugins/views/sorters.py
@@ -160,14 +160,14 @@ def cmp_perfdata_nth_value(r1, r2, n):
return cmp(savefloat(get_perfdata_nth_value(r1, n)),
savefloat(get_perfdata_nth_value(r2, n)))
multisite_sorters['svc_perf_val01'] = {
- "title" : _("Service performance data - value number %02d") %
1,
+ "title" : _("Service performance data - value number %02d" %
1),
"columns" : [ 'service_perf_data' ],
"cmp" : lambda r1, r2: cmp_perfdata_nth_value(r1, r2, 0),
}
multisite_sorters['svc_perf_val02'] = {
- "title" : _("Service performance data - value number %02d"),
+ "title" : _("Service performance data - value number %02d" %
2),
"columns" : [ 'service_perf_data' ],
- "cmp" : lambda r1, r2: cmp_perfdata_nth_value(r1, r2, 1 % 2),
+ "cmp" : lambda r1, r2: cmp_perfdata_nth_value(r1, r2, 1),
}
multisite_sorters['svc_perf_val03'] = {
"title" : _("Service performance data - value number %02d" %
3),