Skip to content

Commit 1814e80

Browse files
authored
Fix incorrect unit of measurement (#43667)
1 parent 8cde478 commit 1814e80

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Illuminate/Database/Console/ShowCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,13 @@ protected function displayForCli(array $data)
148148
$this->components->twoColumnDetail('Tables', $tables->count());
149149

150150
if ($tableSizeSum = $tables->sum('size')) {
151-
$this->components->twoColumnDetail('Total Size', number_format($tableSizeSum / 1024 / 1024, 2).'Mb');
151+
$this->components->twoColumnDetail('Total Size', number_format($tableSizeSum / 1024 / 1024, 2).'MiB');
152152
}
153153

154154
$this->newLine();
155155

156156
if ($tables->isNotEmpty()) {
157-
$this->components->twoColumnDetail('<fg=green;options=bold>Table</>', 'Size (Mb)'.($this->option('counts') ? ' <fg=gray;options=bold>/</> <fg=yellow;options=bold>Rows</>' : ''));
157+
$this->components->twoColumnDetail('<fg=green;options=bold>Table</>', 'Size (MiB)'.($this->option('counts') ? ' <fg=gray;options=bold>/</> <fg=yellow;options=bold>Rows</>' : ''));
158158

159159
$tables->each(function ($table) {
160160
if ($tableSize = $table['size']) {

src/Illuminate/Database/Console/TableCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ protected function displayForCli(array $data)
195195
$this->components->twoColumnDetail('Columns', $table['columns']);
196196

197197
if ($size = $table['size']) {
198-
$this->components->twoColumnDetail('Size', number_format($size / 1024 / 1024, 2).'Mb');
198+
$this->components->twoColumnDetail('Size', number_format($size / 1024 / 1024, 2).'MiB');
199199
}
200200

201201
$this->newLine();

0 commit comments

Comments
 (0)