Merge pull request #1667 from amitelka/feature/opt_statsfile_update_interval

Added env variable to allow custom interval update of fuzzer_stats file
This commit is contained in:
van Hauser
2023-03-06 11:51:56 +01:00
committed by GitHub
6 changed files with 38 additions and 4 deletions

View File

@ -611,9 +611,10 @@ void show_stats_normal(afl_state_t *afl) {
/* Roughly every minute, update fuzzer stats and save auto tokens. */
if (unlikely(!afl->non_instrumented_mode &&
(afl->force_ui_update ||
cur_ms - afl->stats_last_stats_ms > STATS_UPDATE_SEC * 1000))) {
if (unlikely(
!afl->non_instrumented_mode &&
(afl->force_ui_update || 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,