|
@@ -173,7 +173,7 @@ func (n *NetStatBuffers) HandleGetBufferedNetworkInterfaceStats(w http.ResponseW
|
|
|
|
|
|
func (n *NetStatBuffers) Close() {
|
|
|
n.StopChan <- true
|
|
|
- time.Sleep(time.Second)
|
|
|
+ time.Sleep(300 * time.Millisecond)
|
|
|
n.EventTicker.Stop()
|
|
|
}
|
|
|
|
|
@@ -237,7 +237,7 @@ func GetNetworkInterfaceStats() (int64, int64, error) {
|
|
|
tx = s
|
|
|
}
|
|
|
|
|
|
- log.Println(rx, tx)
|
|
|
+ time.Sleep(100 * time.Millisecond)
|
|
|
return rx * 4, tx * 4, nil
|
|
|
} else {
|
|
|
//Invalid data
|