Skip to content

Commit 1d7c76d

Browse files
committed
decrease time to sync for main
1 parent 224a493 commit 1d7c76d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/afl-fuzz.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,15 @@ int main(int argc, char **argv_orig, char **envp) {
13471347

13481348
if (!skipped_fuzz && !afl->stop_soon && afl->sync_id) {
13491349

1350-
if (!(sync_interval_cnt++ % SYNC_INTERVAL)) { sync_fuzzers(afl); }
1350+
if (unlikely(afl->is_main_node)) {
1351+
1352+
if (!(sync_interval_cnt++ % (SYNC_INTERVAL / 2))) { sync_fuzzers(afl); }
1353+
1354+
} else {
1355+
1356+
if (!(sync_interval_cnt++ % SYNC_INTERVAL)) { sync_fuzzers(afl); }
1357+
1358+
}
13511359

13521360
}
13531361

0 commit comments

Comments
 (0)