Module: check_mk
Branch: master
Commit: 0327276e068bdcab76b0f84457cbb104812e639d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0327276e068bdc…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Dec 3 17:55:58 2014 +0100
Minor code cleanup in Livestatus
---
livestatus/src/LogCache.cc | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/livestatus/src/LogCache.cc b/livestatus/src/LogCache.cc
index 90d3ecf..4b90914 100644
--- a/livestatus/src/LogCache.cc
+++ b/livestatus/src/LogCache.cc
@@ -122,12 +122,12 @@ bool LogCache::logCachePreChecks()
// Has Nagios rotated logfiles? => Update
// our file index. And delete all memorized
// log messages.
- #ifdef CMC
+#ifdef CMC
if (g_core->_last_logfile_rotation > _last_index_update) {
- #else
+#else
if (last_log_rotation > _last_index_update) {
- #endif
- logger(LG_INFO, "Nagios has rotated logfiles. Rebuilding logfile
index");
+#endif
+ logger(LG_INFO, "Core has rotated logfiles. Rebuilding logfile
index");
forgetLogfiles();
updateLogfileIndex();
}