We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0948c9f commit e07642fCopy full SHA for e07642f
src/monitor.rs
@@ -79,7 +79,7 @@ pub(crate) fn monitor(
79
Err(Errno::EINTR) => {
80
// Retry.
81
if let Some(t) = timeout {
82
- timeout = Some(t - now.elapsed());
+ timeout = Some(t.saturating_sub(now.elapsed()));
83
}
84
continue 'main_loop;
85
0 commit comments