Module: check_mk
Branch: master
Commit: 19cf69e32cf18f3bca5c1406ce8d4efb13de57d4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=19cf69e32cf18f…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Mar 2 21:46:27 2013 +0100
Prediction: fixed time zone in prediction graph
---
web/htdocs/prediction.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/prediction.py b/web/htdocs/prediction.py
index 58aaedd..abe1f5e 100644
--- a/web/htdocs/prediction.py
+++ b/web/htdocs/prediction.py
@@ -140,7 +140,7 @@ def page_graph():
render_curve(rrd_data, "#0000ff", 2)
if current_value != None:
- rel_time = time.time() % timegroup["slice"]
+ rel_time = (time.time() - time.timezone) % timegroup["slice"]
render_point(timegroup["range"][0] + rel_time, current_value,
"#0000ff")
html.footer()