Module: check_mk
Branch: master
Commit: c008e4aab2998de0a362794a39e2c64f269815c1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c008e4aab2998d…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Apr 15 10:03:16 2014 +0200
AV: avoid computation of uneeded BI aggregates in BI timeline page
---
web/htdocs/views.py | 2 +-
web/plugins/views/availability.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index 218a849..bcb8f5c 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -1313,7 +1313,7 @@ def prepare_display_options():
# is about.
def show_view(view, show_heading = False, show_buttons = True,
show_footer = True, render_function = None, only_count=False):
- if html.var("mode") == "availability" and
html.has_var("aggr_name") and html.var("timeline"):
+ if html.var("mode") == "availability" and
html.has_var("av_aggr_name") and html.var("timeline"):
bi.page_timeline()
return
diff --git a/web/plugins/views/availability.py b/web/plugins/views/availability.py
index e57dcaa..d7da0cc 100644
--- a/web/plugins/views/availability.py
+++ b/web/plugins/views/availability.py
@@ -76,7 +76,7 @@
# we just diplay one element - which is identified by aggr_group
# and aggr_name. We immediately fork to page_timeline()
#
-# - htdocs/views.py:show_view()
+# - htdocs/views.py:show_view() (jumps immediately to page_timeline)
# - htdocs/bi.py:page_timeline()
# - plugins/views/availability.py:render_bi_availability()
# - plugins/views/availability.py:do_render_availability()