X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fhousekeeping.c;h=dae17c3eab220770de5ad614244704063adb3f7d;hp=b685c701af4d1f13d99bd716fd156eeb06eea183;hb=7b92376d3c819cfe849b92dfc5c312084408af9c;hpb=826a38d67f663f93844309e91778f036903dcce4 diff --git a/citadel/housekeeping.c b/citadel/housekeeping.c index b685c701a..dae17c3ea 100644 --- a/citadel/housekeeping.c +++ b/citadel/housekeeping.c @@ -98,7 +98,14 @@ void do_housekeeping(void) { } end_critical_section(S_HOUSEKEEPING); + now = time(NULL); if (do_housekeeping_now == 0) { + if ( (now - last_timer) > (time_t)300 ) { + syslog(LOG_WARNING, + "housekeeping: WARNING: housekeeping loop has not run for %ld minutes. Is something stuck?", + ((now - last_timer) / 60) + ); + } return; } @@ -107,7 +114,6 @@ void do_housekeeping(void) { * loop. Everything below this point is real work. */ - now = time(NULL); if ( (now - last_timer) > (time_t)60 ) { do_perminute_housekeeping_now = 1; last_timer = time(NULL);