Browse Source

auto update script executed

Toby Chui 1 year ago
parent
commit
fcfb764b46
1 changed files with 2 additions and 2 deletions
  1. 2 2
      mod/netstat/netstat.go

+ 2 - 2
mod/netstat/netstat.go

@@ -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