Skip to content

Commit

Permalink
fix: bit rate display for GB
Browse files Browse the repository at this point in the history
  • Loading branch information
PhearZero committed Nov 5, 2024
1 parent 1d37a37 commit a0abfe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func getBitRate(bytes int) string {
txString = fmt.Sprintf("%d MB/s ", bytes/(1<<20))
}
if bytes >= int(math.Pow(1024, 3)) {
txString = fmt.Sprintf("%d GB/s ", bytes/(1<<20))
txString = fmt.Sprintf("%d GB/s ", bytes/(1<<30))
}

return txString
Expand Down

0 comments on commit a0abfe6

Please sign in to comment.