From 871a00a4d7543c7b9cc90b4baec049023c627e07 Mon Sep 17 00:00:00 2001 From: pandx Date: Tue, 5 Nov 2024 16:46:27 +0800 Subject: [PATCH] fix bug. --- scheduler/schedule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scheduler/schedule.cpp b/scheduler/schedule.cpp index 0fbdb99..fc5daac 100644 --- a/scheduler/schedule.cpp +++ b/scheduler/schedule.cpp @@ -347,7 +347,7 @@ int SensorScheduler::StartSchedule(int short_addr, int &next_duration) { } } // wrong time to come - long available_ts = current_wave_start_ts_ + eigen_value_send_interval_ + (id - 1) * eigen_value_send_duration_; + long available_ts = current_wave_start_ts_ + (nth_eigen_value_slice_ + 1) * eigen_value_send_interval_ + (id - 1) * eigen_value_send_duration_; zlog_warn(zct, "[%d] wrong time in wave slice, next feature send utc time:[%s]", id, GetUTCTime(available_ts).c_str()); next_duration = available_ts - current_ts_; return kScheduleWrongTime;