debug: 轮询 tick 日志
This commit is contained in:
parent
b267e7e9e8
commit
12414b4c33
@ -93,7 +93,10 @@ func (s *RegistryService) startGraphPolling() {
|
||||
onlineDevices = append(onlineDevices, dev)
|
||||
}
|
||||
}
|
||||
onlineCount := len(onlineDevices)
|
||||
totalCount := len(s.devices)
|
||||
s.mu.RUnlock()
|
||||
log.Printf("[graph-poll] tick: total_devices=%d online_devices=%d", totalCount, onlineCount)
|
||||
|
||||
for _, dev := range onlineDevices {
|
||||
data, _, err := s.agent.Do("GET", dev.IP, dev.AgentPort, "/v1/graphs", nil)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user