Module: check_mk
Branch: master
Commit: 48a7c863afad23f8ebf301d6272b5b5cf0886d04
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=48a7c863afad23…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Oct 14 13:12:19 2014 +0200
Remove debug output, fix DST in prediction
---
web/htdocs/prediction.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/prediction.py b/web/htdocs/prediction.py
index 1cda8d8..fdef24e 100644
--- a/web/htdocs/prediction.py
+++ b/web/htdocs/prediction.py
@@ -138,14 +138,13 @@ def page_graph():
from_time, until_time = timegroup["range"]
now = time.time()
if now >= from_time and now <= until_time:
- rrd_step, rrd_data = get_rrd_data(host, service, dsname, "MAX",
from_time, until_time)
- render_curve(rrd_data, "#0000ff", 2)
if time.daylight:
tz_offset = time.altzone
else:
tz_offset = time.timezone
+ rrd_step, rrd_data = get_rrd_data(host, service, dsname, "MAX",
from_time, until_time)
+ render_curve(rrd_data, "#0000ff", 2)
if current_value != None:
- html.debug(now, tz_offset, timegroup["slice"])
rel_time = (now - tz_offset) % timegroup["slice"]
render_point(timegroup["range"][0] + rel_time, current_value,
"#0000ff")