Query the stats on startup
This commit is contained in:
@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user