From 791598228eaa7de91562b68eaa60f5528ebf3a2b Mon Sep 17 00:00:00 2001 From: Aarnav Date: Tue, 16 Jul 2024 13:52:25 +0200 Subject: [PATCH] fix incorrect interval check in sync from disk stage (#2408) * fix incorrect interval check in sync from disk stage * simplify check --- libafl/src/stages/sync.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libafl/src/stages/sync.rs b/libafl/src/stages/sync.rs index 96d0c6d798..488fe1968b 100644 --- a/libafl/src/stages/sync.rs +++ b/libafl/src/stages/sync.rs @@ -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(()); } }