diff --git a/internal/agent/agent.go b/internal/agent/agent.go index e296620..c70babc 100644 --- a/internal/agent/agent.go +++ b/internal/agent/agent.go @@ -26,8 +26,10 @@ const ( defaultPollInterval = 30 * time.Second // Heartbeat interval defaultHeartbeatInterval = 60 * time.Second - // Traffic report interval (piggybacks the heartbeat tick) - defaultTrafficInterval = 60 * time.Second + // Traffic report interval (own ticker; 10s keeps agent inbounds' + // traffic/onlines freshness in the same order of magnitude as the + // master's seconds-level polling of traditional panel nodes) + defaultTrafficInterval = 10 * time.Second ) // DefaultBinFolder is used when XUI_BIN_FOLDER is unset. It matches the