fix: test channel frequency (#2119)
This commit is contained in:
1 parent
7b838d642a
commit
25de94e292
2 files changed
+4
-4
No files matched your search
@@ -625,7 +625,7 @@ func AutomaticallyTestChannels() {
|
||||
}
|
||||
for {
|
||||
frequency := operation_setting.GetMonitorSetting().AutoTestChannelMinutes
|
||||
time.Sleep(time.Duration(frequency) * time.Minute)
|
||||
time.Sleep(time.Duration(int(math.Round(frequency))) * time.Minute)
|
||||
common.SysLog(fmt.Sprintf("automatically test channels with interval %d minutes", frequency))
|
||||
common.SysLog("automatically testing all channels")
|
||||
_ = testAllChannels(false)
|
||||
|
||||
Reference in new issue
Block a user