mirror of
https://github.com/bolucat/Archive.git
synced 2025-12-24 13:28:37 +08:00
Update On Sun Sep 1 20:31:00 CEST 2024
This commit is contained in:
@@ -190,10 +190,10 @@ func (s *Stats) Record(up, down int64) {
|
||||
}
|
||||
|
||||
func (s *Stats) String() string {
|
||||
return fmt.Sprintf("up: %s, down: %s, handshake latency: %s",
|
||||
return fmt.Sprintf("up: %s, down: %s, latency: %s",
|
||||
bytes.PrettyByteSize(float64(s.Up)),
|
||||
bytes.PrettyByteSize(float64(s.Down)),
|
||||
s.HandShakeLatency.String(),
|
||||
fmt.Sprintf("%d ms", s.HandShakeLatency.Milliseconds()),
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user