* housekeeping once every 60 seconds, not 1 second
authorArt Cancro <ajc@citadel.org>
Mon, 16 Jul 2001 14:30:28 +0000 (14:30 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 16 Jul 2001 14:30:28 +0000 (14:30 +0000)
citadel/housekeeping.c

index 34ca22092ed3f672bd290fba136420474d09b326..5cfea179ae84809a1bfb41c9345dd676dbcb213a 100644 (file)
@@ -39,6 +39,7 @@
 #include "sysdep_decls.h"
 #include "room_ops.h"
 #include "database.h"
+#include "dynloader.h"
 
 
 
@@ -119,7 +120,7 @@ void check_ref_counts(void) {
  */
 void do_housekeeping(void) {
        static int housekeeping_in_progress = 0;
-       time_t last_timer = 0L;
+       static time_t last_timer = 0L;
        int do_housekeeping_now = 0;
 
        /*