chiark / gitweb /
Log stats at intervals
[innduct.git] / statemc.c
index b995957cdebdb4fd0529845fffea87d9dbe96c83..5adecf95997cd79df2ea2dd3d4eb5746b7274547 100644 (file)
--- a/statemc.c
+++ b/statemc.c
@@ -481,11 +481,16 @@ void spawn_inndcomm_flush(const char *why) { /* Moved => Flushing */
 
 void preterminate(void) {
   if (in_child) return;
+  showstats();
+}
+
+void showstats(void) {
   notice_processed(main_input_file,0,"feedfile","");
   notice_processed(flushing_input_file,0,"flushing","");
   if (backlog_input_file)
     notice_processed(backlog_input_file,0, "backlog file ",
                     backlog_input_file->path);
+  until_stats_log= stats_log_periods;
 }
 
 static int signal_self_pipe[2];