Skip to content

Commit

Permalink
chore: rename megabyte to mebibyte (#3994)
Browse files Browse the repository at this point in the history
Handles the renaming feedback in
#3904 (comment)
  • Loading branch information
rach-id authored Oct 21, 2024
1 parent 0b3c516 commit 0ad4d72
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 0ad4d72

Please sign in to comment.