Browse Source

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

anime 4 months ago
parent
commit
57e5d67f86
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controller/channel-test.go

+ 1 - 1
controller/channel-test.go

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