fix(channel): move log statement after sleep in auto-test loop

This commit is contained in:
anime
2025-10-11 00:59:13 +08:00
parent 7351480365
commit 57e5d67f86

View File

@@ -624,8 +624,8 @@ func AutomaticallyTestChannels() {
}
for {
frequency := operation_setting.GetMonitorSetting().AutoTestChannelMinutes
common.SysLog(fmt.Sprintf("automatically test channels with interval %d minutes", frequency))
time.Sleep(time.Duration(frequency) * time.Minute)
common.SysLog(fmt.Sprintf("automatically test channels with interval %d minutes", frequency))
common.SysLog("automatically testing all channels")
_ = testAllChannels(false)
common.SysLog("automatically channel test finished")