Update sys_timer.cpp

This commit is contained in:
Elad Ashkenazi 2023-06-03 18:32:02 +03:00 committed by Ani
parent 2c999a550b
commit ba9f55679d
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ u64 lv2_timer::check_unlocked(u64 _now) noexcept
// Set next expiration time and check again
const u64 expire0 = utils::add_saturate<u64>(next, period);
expire.release(expire0);
return expire0 - _now;
return utils::sub_saturate<u64>(expire0, _now);
}
// Stop after oneshot