Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: rename megabyte to mebibyte #3994

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/benchmarks/benchmark_msg_send_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ func generateMsgSendTransactions(b *testing.B, count int) (*app.App, [][]byte) {
return testApp, rawTxs
}

// megabyte the number of bytes in a megabyte
const megabyte = 1048576
// mebibyte the number of bytes in a mebibyte
const mebibyte = 1048576

// calculateBlockSizeInMb returns the block size in mb given a set
// of raw transactions.
Expand All @@ -317,7 +317,7 @@ func calculateBlockSizeInMb(txs [][]byte) float64 {
for _, tx := range txs {
numberOfBytes += len(tx)
}
mb := float64(numberOfBytes) / megabyte
mb := float64(numberOfBytes) / mebibyte
return mb
}

Expand Down
Loading