Commit a92afd7a by Seefs Committed by GitHub

Merge pull request #2002 from qixing-jk/fix/dynamic-frequency-updates

fix(channel): handle dynamic frequency updates
parents e259a2f5 ec460394
...@@ -622,10 +622,10 @@ func AutomaticallyTestChannels() { ...@@ -622,10 +622,10 @@ func AutomaticallyTestChannels() {
time.Sleep(10 * time.Minute) time.Sleep(10 * time.Minute)
continue continue
} }
frequency := operation_setting.GetMonitorSetting().AutoTestChannelMinutes
common.SysLog(fmt.Sprintf("automatically test channels with interval %d minutes", frequency))
for { for {
frequency := operation_setting.GetMonitorSetting().AutoTestChannelMinutes
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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment