fix TimerManager interval timebase
Some checks failed
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 1m9s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Successful in 1m13s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Successful in 1m23s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 1m27s
linux-x64-gcc / linux-gcc (push) Failing after 1m18s
linux-mips64-gcc / linux-gcc-mips64el (push) Failing after 1m30s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Successful in 1m46s

This commit is contained in:
tqcq 2024-03-05 11:53:16 +08:00
parent 5606fb39e0
commit 7a17509718

View File

@ -155,7 +155,7 @@ TimerManager::Loop()
try { try {
timer->on_expire()(); timer->on_expire()();
if (timer->auto_reset()) { if (timer->auto_reset()) {
timers_.insert({when + timer->interval(), timer}); timers_.insert({now + timer->interval(), timer});
} else { } else {
delete timer; delete timer;
} }