From 90c365dbdb63ead69d03e4a2a436d8c8762a085b Mon Sep 17 00:00:00 2001 From: orestonce Date: Sat, 18 Nov 2023 11:02:55 +0800 Subject: [PATCH] fix --- speed.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speed.go b/speed.go index 0757896..fd9a1f4 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 "x1 " + strconv.FormatBool(this.speedBeginTime.IsZero()) + " " + strconv.FormatBool(now.Sub(this.speedBeginTime) < time.Second) + return strconv.FormatBool(this.speedBeginTime.IsZero()) + " " + strconv.FormatBool(now.Sub(this.speedBeginTime) < time.Second) } const secondCount = 5