From cfa43fff9d8b09b5e278ceb6c2a8069d3ec47e73 Mon Sep 17 00:00:00 2001 From: Marek Szymczuk Date: Thu, 11 Aug 2022 21:25:58 +0200 Subject: [PATCH] Fix incorrect unit of measurement --- src/Illuminate/Database/Console/ShowCommand.php | 4 ++-- src/Illuminate/Database/Console/TableCommand.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Illuminate/Database/Console/ShowCommand.php b/src/Illuminate/Database/Console/ShowCommand.php index 67f2909e975b..2411eb6b2836 100644 --- a/src/Illuminate/Database/Console/ShowCommand.php +++ b/src/Illuminate/Database/Console/ShowCommand.php @@ -148,13 +148,13 @@ protected function displayForCli(array $data) $this->components->twoColumnDetail('Tables', $tables->count()); if ($tableSizeSum = $tables->sum('size')) { - $this->components->twoColumnDetail('Total Size', number_format($tableSizeSum / 1024 / 1024, 2).'Mb'); + $this->components->twoColumnDetail('Total Size', number_format($tableSizeSum / 1024 / 1024, 2).'MiB'); } $this->newLine(); if ($tables->isNotEmpty()) { - $this->components->twoColumnDetail('Table', 'Size (Mb)'.($this->option('counts') ? ' / Rows' : '')); + $this->components->twoColumnDetail('Table', 'Size (MiB)'.($this->option('counts') ? ' / Rows' : '')); $tables->each(function ($table) { if ($tableSize = $table['size']) { diff --git a/src/Illuminate/Database/Console/TableCommand.php b/src/Illuminate/Database/Console/TableCommand.php index 7101879a3920..faf3e52d288d 100644 --- a/src/Illuminate/Database/Console/TableCommand.php +++ b/src/Illuminate/Database/Console/TableCommand.php @@ -195,7 +195,7 @@ protected function displayForCli(array $data) $this->components->twoColumnDetail('Columns', $table['columns']); if ($size = $table['size']) { - $this->components->twoColumnDetail('Size', number_format($size / 1024 / 1024, 2).'Mb'); + $this->components->twoColumnDetail('Size', number_format($size / 1024 / 1024, 2).'MiB'); } $this->newLine();