Module: check_mk
Branch: master
Commit: 5f08cdda23a1187beef49d3f7a0c742f63e726ff
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5f08cdda23a118…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Jun 26 13:43:26 2014 +0200
availability: fix problem where chaos periods are not being shown
---
web/plugins/views/availability.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/web/plugins/views/availability.py b/web/plugins/views/availability.py
index de80cf4..96183f7 100644
--- a/web/plugins/views/availability.py
+++ b/web/plugins/views/availability.py
@@ -903,6 +903,8 @@ def render_timeline(timeline_rows, from_time, until_time,
considered_duration,
html.write('<td onmouseover="timeline_hover(%d, 1);"
onmouseout="timeline_hover(%d, 0);" '
'style="width: %.3f%%" title="%s"
class="%s"></td>' % (
row_nr, row_nr, width, html.attrencode(title), css))
+ if chaos_count > 1:
+ output_chaos_period(chaos_begin, chaos_end, chaos_count, chaos_width)
html.write('</tr></table>')
if style == "inline":