Added flag -u to allow custom interval to update fuzzer_stats file

This commit is contained in:
Amit Elkabetz
2023-03-05 18:16:21 +02:00
parent 2ff0ff7a90
commit 07cf27cddc
4 changed files with 17 additions and 4 deletions

View File

@ -613,7 +613,7 @@ void show_stats_normal(afl_state_t *afl) {
if (unlikely(!afl->non_instrumented_mode &&
(afl->force_ui_update ||
cur_ms - afl->stats_last_stats_ms > STATS_UPDATE_SEC * 1000))) {
cur_ms - afl->stats_last_stats_ms > afl->stats_file_update_freq_msecs))) {
afl->stats_last_stats_ms = cur_ms;
write_stats_file(afl, t_bytes, t_byte_ratio, stab_ratio,