Skip to content

Commit

Permalink
That's per second, not times second
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterthanlime committed May 23, 2018
1 parent 50f60be commit a507e90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion progress/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func FormatBPSValue(bps float64) string {
}

func FormatBPS(size int64, duration time.Duration) string {
return FormatBPSValue(float64(size) * duration.Seconds())
return FormatBPSValue(float64(size) / duration.Seconds())
}

func FormatDuration(d time.Duration) string {
Expand Down

0 comments on commit a507e90

Please sign in to comment.