orestonce 2023-11-18 11:03:42 +08:00
parent 90c365dbdb
commit 2e35b99cee
1 changed files with 1 additions and 1 deletions

View File

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