fix
parent
90c365dbdb
commit
2e35b99cee
2
speed.go
2
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue