1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

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

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