Define config, change parent func to show_stats

This commit is contained in:
Edznux
2020-10-04 03:24:09 +02:00
parent ff8c6d2415
commit 6006cce0cf
3 changed files with 9 additions and 6 deletions

View File

@ -422,6 +422,14 @@ void show_stats(afl_state_t *afl) {
}
#ifdef USE_STATSD
if (cur_ms - afl->stats_last_stats_ms > STATSD_UPDATE_SEC * 1000) {
if(send_statsd_metric(afl)){
WARNF("coundln't send statsd metric.");
}
}
#endif
/* Every now and then, write plot data. */
if (cur_ms - afl->stats_last_plot_ms > PLOT_UPDATE_SEC * 1000) {