Query the stats on startup

This commit is contained in:
Pim van Pelt
2025-06-09 17:21:48 +02:00
parent d4769d6cdb
commit fdd6406855

View File

@ -28,6 +28,9 @@ func statsRoutine(statsSocketPath string, period time.Duration) {
}
defer c.Disconnect()
// Query stats immediately on startup
queryInterfaceStats(c)
ticker := time.NewTicker(period)
defer ticker.Stop()