Skip to content

Commit

Permalink
Switch to 1000 for mbps (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
zakstucke authored Jun 14, 2024
1 parent 8fc11ff commit 9de4e29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .zetch.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust/bitbazaar/misc/bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ pub fn bytes_to_pretty_1024(bytes: u64) -> String {

/// Convert bytes to megabits per second.
pub fn bytes_to_mbps(bytes: u64) -> f64 {
bytes as f64 / 1024.0 / 1024.0 * 8.0
bytes as f64 / 1000.0 / 1000.0 * 8.0
}

0 comments on commit 9de4e29

Please sign in to comment.