diff options
author | Edznux <edznux@gmail.com> | 2020-10-04 03:24:09 +0200 |
---|---|---|
committer | Edznux <edznux@gmail.com> | 2020-10-04 03:24:09 +0200 |
commit | 6006cce0cf012884d1509c00ef0f088aeac66bb7 (patch) | |
tree | 608d164855c0d8669af1f70900e8449e0545c99c /src/afl-fuzz-stats.c | |
parent | ff8c6d24156811333c855755fea8fafc43e133bc (diff) | |
download | afl++-6006cce0cf012884d1509c00ef0f088aeac66bb7.tar.gz |
Define config, change parent func to show_stats
Diffstat (limited to 'src/afl-fuzz-stats.c')
-rw-r--r-- | src/afl-fuzz-stats.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/afl-fuzz-stats.c b/src/afl-fuzz-stats.c index 51eed14b..bbbe6ba6 100644 --- a/src/afl-fuzz-stats.c +++ b/src/afl-fuzz-stats.c @@ -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) { |