diff --git a/services/time_manager/include/time_tick_notify.h b/services/time_manager/include/time_tick_notify.h index f74efde..bef1e20 100644 --- a/services/time_manager/include/time_tick_notify.h +++ b/services/time_manager/include/time_tick_notify.h @@ -29,7 +29,7 @@ public: void Stop(); private: void StartTimer(); - void RefreshNextTriggerTime(); + void RefreshNextTriggerTime(); uint64_t GetMillisecondsFromUTC(uint64_t UTCtimeNano); uint64_t GetSecondsFromUTC(uint64_t UTCtimeNano); uint64_t timerId_; diff --git a/services/time_manager/src/time_tick_notify.cpp b/services/time_manager/src/time_tick_notify.cpp index f16922f..7079e9d 100644 --- a/services/time_manager/src/time_tick_notify.cpp +++ b/services/time_manager/src/time_tick_notify.cpp @@ -55,7 +55,7 @@ void TimeTickNotify::Callback(const uint64_t timerId) DelayedSingleton::GetInstance()->PublishTimeTickEvents(currentTime); timerId_ = timerId; RefreshNextTriggerTime(); - auto startFunc = [this](){ + auto startFunc = [this]() { this->StartTimer(); }; std::thread startTimerThread(startFunc);