Module: check_mk
Branch: master
Commit: 5506b9a57cac1b8c67787d520f19ea7bb03562be
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5506b9a57cac1b…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Nov 12 14:02:00 2013 +0100
Availability: fix case where no data is available in timeline
---
web/plugins/views/availability.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/web/plugins/views/availability.py b/web/plugins/views/availability.py
index 1773bd6..c2c29e3 100644
--- a/web/plugins/views/availability.py
+++ b/web/plugins/views/availability.py
@@ -640,6 +640,9 @@ def do_render_availability(rows, what, avoptions, timeline,
timewarpcode):
need_statistics = os_aggrs and os_states
show_timeline = avoptions["show_timeline"]
grouping = avoptions["grouping"]
+ timeline_rows = [] # Need this as a global variable if just one service is affected
+ total_duration = 0
+ considered_duration = 0
# Note: in case of timeline, we have data from exacly one host/service
for site_host, site_host_entry in by_host.iteritems():