Merge branch 'refs/heads/feat-tool'
This commit is contained in:
commit
f10e583aa8
|
|
@ -231,13 +231,10 @@ func ScanDeviceStatus() {
|
|||
devices := worker.GetRedisSetMembers("627gyf3488h")
|
||||
offline := ""
|
||||
for _, v := range devices {
|
||||
res := worker.GetRedis(v)
|
||||
if res == "" {
|
||||
c := worker.IsContainKey("monitor_" + v)
|
||||
if c == false {
|
||||
worker.SetRedisWithExpire("monitor_"+v, "1", time.Hour*12)
|
||||
offline += v + ","
|
||||
}
|
||||
c := worker.IsContainKey("monitor_" + v)
|
||||
if c == false {
|
||||
worker.SetRedisWithExpire("monitor_"+v, "1", time.Hour*24)
|
||||
offline += v + ","
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue