Skip to content

Commit

Permalink
fix incorrect interval check in sync from disk stage (AFLplusplus#2408)
Browse files Browse the repository at this point in the history
* fix incorrect interval check in sync from disk stage

* simplify check
  • Loading branch information
R9295 authored Jul 16, 2024
1 parent 074a16f commit 7915982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libafl/src/stages/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ where
.map(|m| m.last_time);

if let Some(last) = last {
if (last + self.interval) < current_time() {
if current_time().saturating_sub(last) < self.interval {
return Ok(());
}
}
Expand Down

0 comments on commit 7915982

Please sign in to comment.