if (!stats_control)
return;
+
get_systime(&now);
filegen_setup(&peerstats, now.l_ui);
day = now.l_ui / 86400 + MJD_1900;
if (!stats_control)
return;
+
get_systime(&now);
filegen_setup(&loopstats, now.l_ui);
day = now.l_ui / 86400 + MJD_1900;
if (!stats_control)
return;
+
get_systime(&now);
filegen_setup(&clockstats, now.l_ui);
day = now.l_ui / 86400 + MJD_1900;
if (!stats_control)
return;
+
get_systime(&now);
filegen_setup(&rawstats, now.l_ui);
day = now.l_ui / 86400 + MJD_1900;
/*
- * record_sys_stats - write system statistics to file *
+ * record_sys_stats - write system statistics to file
+ *
* file format
* time (s past midnight)
- * peer ip address
- * local ip address
- * sysstats...
+ * time since startup (hr)
+ * packets recieved
+ * packets processed
+ * current version
+ * previous version
+ * bad version
+ * access denied
+ * bad length or format
+ * bad authentication
+ * rate exceeded
*/
void
record_sys_stats(void)
if (!stats_control)
return;
+
get_systime(&now);
filegen_setup(&sysstats, now.l_ui);
day = now.l_ui / 86400 + MJD_1900;
if (!stats_control)
return;
+
get_systime(&now);
filegen_setup(&cryptostats, now.l_ui);
day = now.l_ui / 86400 + MJD_1900;