Module: check_mk
Branch: master
Commit: b29ce71d6a70132734204247b06132eb0471de1b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b29ce71d6a7013…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Aug 24 17:00:41 2011 +0200
Fixed wato log daily rotation
---
web/htdocs/wato.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index fa6f837..f4f0f3f 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -1548,13 +1548,13 @@ def paged_log(log):
next_log_time = int(log[index - 1][0])
elif t < start_time and last_log_index is None:
- last_log_index = index - 1
+ last_log_index = index
# This is the next log after this day
previous_log_time = int(log[index][0])
# Finished!
break
- if not last_log_index:
+ if last_log_index is None:
last_log_index = len(log) - 1
return log[first_log_index:last_log_index], (start_time, end_time, previous_log_time,
next_log_time)