From 890f27dbd1084aa252aad009da28bc830af94df3 Mon Sep 17 00:00:00 2001 From: pandx Date: Wed, 6 Nov 2024 15:38:22 +0800 Subject: [PATCH] fix return 0 bug. --- scheduler/schedule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scheduler/schedule.cpp b/scheduler/schedule.cpp index e648b2a..d2d3873 100644 --- a/scheduler/schedule.cpp +++ b/scheduler/schedule.cpp @@ -144,7 +144,7 @@ int SensorScheduler::GetNextDuration(int short_addr) { long next_ts = CalcNextTimestamp(id); int duration = next_ts - current_ts; zlog_debug(zct, "[%d] next duration is %d", id, duration); - return 0; + return duration; } long SensorScheduler::GetBaseTimestamp(int short_addr) {