Skip to content

Commit

Permalink
chore: rename megabyte to mebibyte
Browse files Browse the repository at this point in the history
  • Loading branch information
rach-id committed Oct 21, 2024
1 parent d4eb75e commit bcaa56e
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 bcaa56e

Please sign in to comment.