Skip to content

Commit a0abfe6

Browse files
committed
fix: bit rate display for GB
1 parent 1d37a37 commit a0abfe6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func getBitRate(bytes int) string {
5454
txString = fmt.Sprintf("%d MB/s ", bytes/(1<<20))
5555
}
5656
if bytes >= int(math.Pow(1024, 3)) {
57-
txString = fmt.Sprintf("%d GB/s ", bytes/(1<<20))
57+
txString = fmt.Sprintf("%d GB/s ", bytes/(1<<30))
5858
}
5959

6060
return txString

0 commit comments

Comments
 (0)