X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fmodules%2Ffulltext%2Fserv_fulltext.c;h=40645a294b7cdb4eb2e5dba6226adf24f7f91169;hp=522c3824a7d08269dfc98fb199ea09c611a5c191;hb=5a3c48d2513dab2cec3c32b37e804a891613a909;hpb=63036a933365488e24c21cd5a6b2689f34e1fbb0 diff --git a/citadel/modules/fulltext/serv_fulltext.c b/citadel/modules/fulltext/serv_fulltext.c index 522c3824a..40645a294 100644 --- a/citadel/modules/fulltext/serv_fulltext.c +++ b/citadel/modules/fulltext/serv_fulltext.c @@ -245,7 +245,7 @@ void do_fulltext_indexing(void) { static int is_running = 0; if (is_running) return; /* Concurrency check - only one can run */ is_running = 1; - + /* * Don't do this if the site doesn't have it enabled. */ @@ -257,7 +257,13 @@ void do_fulltext_indexing(void) { * Make sure we don't run the indexer too frequently. * FIXME move the setting into config */ - if ( (time(NULL) - last_index) < 300L) { + time_t now = time(NULL); + if ( (now - last_index) < 300L) { + syslog(LOG_DEBUG, + "fulltext: indexing interval not yet reached; last run was %ldm%lds ago", + ((now - last_index) / 60), + ((now - last_index) % 60) + ); return; }