omx(team): auto-checkpoint worker-1 [1]

This commit is contained in:
bellman
2026-05-15 10:28:11 +09:00
parent a212c662e5
commit bc32639ce3
3 changed files with 13 additions and 10 deletions

View File

@@ -600,8 +600,9 @@ fn jitter_for_base(base: Duration) -> Duration {
}
let raw_nanos = SystemTime::now()
.duration_since(UNIX_EPOCH)
.map(|elapsed| u64::try_from(elapsed.as_nanos()).unwrap_or(u64::MAX))
.unwrap_or(0);
.map_or(0, |elapsed| {
u64::try_from(elapsed.as_nanos()).unwrap_or(u64::MAX)
});
let tick = JITTER_COUNTER.fetch_add(1, Ordering::Relaxed);
// splitmix64 finalizer — mixes the low bits so large bases still see
// jitter across their full range instead of being clamped to subsec nanos.