minimum sync time

This commit is contained in:
vanhauser-thc
2021-02-22 16:56:35 +01:00
parent 70fe872940
commit fb2a6b6941
5 changed files with 21 additions and 3 deletions

View File

@ -1986,15 +1986,24 @@ int main(int argc, char **argv_orig, char **envp) {
if (unlikely(afl->is_main_node)) {
if (!(sync_interval_cnt++ % (SYNC_INTERVAL / 3))) {
if (unlikely(get_cur_time() >
(SYNC_TIME >> 1) + afl->last_sync_time)) {
sync_fuzzers(afl);
if (!(sync_interval_cnt++ % (SYNC_INTERVAL / 3))) {
sync_fuzzers(afl);
}
}
} else {
if (!(sync_interval_cnt++ % SYNC_INTERVAL)) { sync_fuzzers(afl); }
if (unlikely(get_cur_time() > SYNC_TIME + afl->last_sync_time)) {
if (!(sync_interval_cnt++ % SYNC_INTERVAL)) { sync_fuzzers(afl); }
}
}