prev_run_time loaded used only for ui and when writing the stats file

This commit is contained in:
vj-27
2021-02-07 03:33:47 +05:30
parent f54c4dbfdb
commit 96cdc97c98
3 changed files with 13 additions and 21 deletions

View File

@ -1682,8 +1682,7 @@ int main(int argc, char **argv_orig, char **envp) {
if (unlikely(afl->old_seed_selection)) seek_to = find_start_position(afl);
afl->start_time = get_cur_time(); // without this, time taken for
// perform_dry_run gets added to run time.
afl->start_time = get_cur_time();
if (afl->in_place_resume || afl->afl_env.afl_autoresume) load_stats_file(afl);
write_stats_file(afl, 0, 0, 0);
maybe_update_plot_file(afl, 0, 0);
@ -1703,8 +1702,6 @@ int main(int argc, char **argv_orig, char **envp) {
// (void)nice(-20); // does not improve the speed
// real start time, we reset, so this works correctly with -V
afl->start_time = get_cur_time();
if (afl->in_place_resume || afl->afl_env.afl_autoresume)
afl->start_time -= afl->prev_run_time;
u32 runs_in_current_cycle = (u32)-1;
u32 prev_queued_paths = 0;