From 0a373ba99fc96b8f6b31d9159eafa83c448026fb Mon Sep 17 00:00:00 2001 From: CHAMI Rachid Date: Mon, 21 Oct 2024 14:47:20 +0200 Subject: [PATCH] chore: rename megabyte to mebibyte (#3994) Handles the renaming feedback in https://github.com/celestiaorg/celestia-app/pull/3904#discussion_r1808009238 (cherry picked from commit 0ad4d72417c011a3b175f03f47c16d93c632499e) --- app/benchmarks/benchmark_msg_send_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/benchmarks/benchmark_msg_send_test.go b/app/benchmarks/benchmark_msg_send_test.go index 91557e39f9..7e79db9a67 100644 --- a/app/benchmarks/benchmark_msg_send_test.go +++ b/app/benchmarks/benchmark_msg_send_test.go @@ -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. @@ -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 }