Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
orestonce committed Nov 18, 2023
1 parent 554eae5 commit 90c365d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion speed.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 90c365d

Please sign in to comment.