extern int spontaneous_flush_periods;
extern int max_separated_periods;
extern int need_activity_periods;
+extern int stats_log_periods;
extern int lowvol_thresh;
extern int lowvol_periods;
RCI_max
} ResultCountIndex;
+typedef enum {
+ read_ok, read_blank, read_err, nooffer_missing,
+ ECI_max
+} EventCountIndex;
/*----- transmission buffers -----*/
/*----- core operational data structure types -----*/
+typedef struct {
+ int results[art_MaxState][RCI_max];
+ int events[ECI_max];
+} Counts;
+
struct InputFile {
/* This is also an instance of struct oop_readable */
struct oop_readable readable; /* first */
long inprogress; /* includes queue.count and also articles in conns */
long autodefer; /* -1 means not doing autodefer */
- int counts[art_MaxState][RCI_max];
- int readcount_ok, readcount_blank, readcount_err, count_nooffer_missing;
+ Counts counts;
char path[];
};
/*========== general operational variables ==========*/
-/* innduct.c */
+/* duct.c */
extern oop_source *loop;
extern ConnList conns;
extern char *path_lock, *path_flushing, *path_defer, *path_dump;
extern int *lowvol_perperiod;
extern int lowvol_circptr;
extern int lowvol_total; /* does not include current period */
+extern int until_stats_log;
/* statemc.c */
extern StateMachineState sms;
extern int until_flush;
extern InputFile *main_input_file, *flushing_input_file, *backlog_input_file;
+extern Counts backlog_counts;
+extern int backlog_counts_report;
extern FILE *defer;
extern int until_connect, until_backlog_nextscan;
extern double accept_proportion;