[icinga-checkins] icinga.org: icinga-core/next: classic-ui: fixed problem on reading logs #972

git at icinga.org git at icinga.org
Tue Oct 9 03:47:25 CEST 2012


Module: icinga-core
Branch: next
Commit: f526c5fe4090c47fcb7220e2093ef9b2be34d9f5
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=f526c5fe4090c47fcb7220e2093ef9b2be34d9f5

Author: Ricardo Bartels <ricardo at bitchbrothers.com>
Date:   Mon Oct  8 23:12:20 2012 +0200

classic-ui: fixed problem on reading logs #972

refs: #972

after refactoring log reading, in some cases the avail.cgi created
wrong data

Thanks to Thomas Kloppholz for the finding.

---

 cgi/readlogs.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/cgi/readlogs.c b/cgi/readlogs.c
index 115f9d0..df7b046 100644
--- a/cgi/readlogs.c
+++ b/cgi/readlogs.c
@@ -337,9 +337,7 @@ int get_log_entries(logentry **entry_list, logfilter **filter_list, char **error
 		if (timestamp > ts_end)
 			continue;
 
-		/* file found where timestamp range matches ts_end */
-		if (timestamp < ts_end && (last_timestamp > ts_end || last_timestamp == 0L))
-			in_range = TRUE;
+		in_range = TRUE;
 
 		/* the priviouse file holds range for ts_start */
 		if (last_timestamp != 0L && last_timestamp < ts_start)





More information about the icinga-checkins mailing list