kopia lustrzana https://github.com/cyoung/stratux
Type fix.
rodzic
3d44242d50
commit
64277ef6ef
|
@ -219,10 +219,9 @@ func messageQueueSender() {
|
|||
pd = float64(1.0/2500.0)
|
||||
}
|
||||
queueTimer.Stop()
|
||||
queueTimer = time.NewTicker(int(pd * 1000000000.0) * time.Nanosecond)
|
||||
queueTimer = time.NewTicker(time.Duration(pd * 1000000000.0) * time.Nanosecond)
|
||||
lastQueueTimeChange = time.Now()
|
||||
}
|
||||
averageSendableQueueSize
|
||||
netMutex.Unlock()
|
||||
case <-secondTimer.C:
|
||||
getNetworkStats()
|
||||
|
|
Ładowanie…
Reference in New Issue