diff --git a/speed.go b/speed.go index fd9a1f4..bf4115f 100644 --- a/speed.go +++ b/speed.go @@ -62,7 +62,7 @@ func (this *SpeedStatus) SpeedRecent5sGetAndUpdate() string { now := time.Now() if this.speedBeginTime.IsZero() || now.Sub(this.speedBeginTime) < time.Second { // 1s以内, 暂时不计算速度 - return strconv.FormatBool(this.speedBeginTime.IsZero()) + " " + strconv.FormatBool(now.Sub(this.speedBeginTime) < time.Second) + return "" } const secondCount = 5