From 7a17509718deeb611e20d2158530e9fd07f124e2 Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Tue, 5 Mar 2024 11:53:16 +0800 Subject: [PATCH] fix TimerManager interval timebase --- src/ulib/system/timer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ulib/system/timer.cpp b/src/ulib/system/timer.cpp index 8031792..a926537 100644 --- a/src/ulib/system/timer.cpp +++ b/src/ulib/system/timer.cpp @@ -155,7 +155,7 @@ TimerManager::Loop() try { timer->on_expire()(); if (timer->auto_reset()) { - timers_.insert({when + timer->interval(), timer}); + timers_.insert({now + timer->interval(), timer}); } else { delete timer; }