debug: 轮询 tick 日志

This commit is contained in:
tian 2026-08-02 12:30:06 +08:00
parent b267e7e9e8
commit 12414b4c33

View File

@ -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)