fix
parent
554eae5185
commit
90c365dbdb
2
speed.go
2
speed.go
|
|
@ -62,7 +62,7 @@ func (this *SpeedStatus) SpeedRecent5sGetAndUpdate() string {
|
||||||
|
|
||||||
now := time.Now()
|
now := time.Now()
|
||||||
if this.speedBeginTime.IsZero() || now.Sub(this.speedBeginTime) < time.Second { // 1s以内, 暂时不计算速度
|
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
|
const secondCount = 5
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue