Skip to content

Commit 18c8097

Browse files
committed
more default
1 parent 1931851 commit 18c8097

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/libafl/src/stages/afl_stats.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,11 @@ where
550550

551551
fn check_interval(&mut self) -> bool {
552552
let cur = current_time();
553-
if cur.saturating_sub(self.last_report_time) > self.stats_report_interval {
553+
if cur
554+
.checked_sub(self.last_report_time)
555+
.unwrap_or(self.stats_report_interval)
556+
>= self.stats_report_interval
557+
{
554558
self.last_report_time = cur;
555559
return true;
556560
}

0 commit comments

Comments
 (0)