Module: check_mk
Branch: master
Commit: b169257393266809cf6283280ababd5401560970
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b1692573932668…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Oct 9 13:00:53 2012 +0200
livestatus: code reformatting
---
livestatus/src/module.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/livestatus/src/module.c b/livestatus/src/module.c
index 8bef4f3..1100c47 100644
--- a/livestatus/src/module.c
+++ b/livestatus/src/module.c
@@ -499,10 +499,8 @@ int broker_event(int event_type __attribute__ ((__unused__)), void
*data)
if( ts->event_type == EVENT_LOG_ROTATION){
if( g_thread_running == 1 ){
livestatus_log_initial_states();
- } else {
- if ( log_initial_states == 1 )
- write_to_all_logs("logging intitial states", LG_INFO);
- }
+ } else if (log_initial_states == 1)
+ write_to_all_logs("logging intitial states", LG_INFO);
}
update_timeperiods_cache(ts->timestamp.tv_sec);