diff --git a/src/Commands/Concerns/InteractsWithIO.php b/src/Commands/Concerns/InteractsWithIO.php index b12b7eccb..5c93c8619 100644 --- a/src/Commands/Concerns/InteractsWithIO.php +++ b/src/Commands/Concerns/InteractsWithIO.php @@ -116,7 +116,7 @@ public function requestInfo($request, $verbosity = null) $duration = number_format(round($request['duration'], 2), 2, '.', ''); $memory = isset($request['memory']) - ? (number_format($request['memory'] / 1024 / 1204, 2, '.', '').' mb ') + ? (number_format($request['memory'] / 1024 / 1024, 2, '.', '').' mb ') : ''; ['method' => $method, 'statusCode' => $statusCode] = $request; diff --git a/tests/CommandTest.php b/tests/CommandTest.php index 5ba951bf8..84a8d4914 100644 --- a/tests/CommandTest.php +++ b/tests/CommandTest.php @@ -75,9 +75,9 @@ public function test_request() ]); $this->assertEquals(<<<'EOF' - 200 GET /welcome ......... 14.11 mb 10.00 ms - 404 POST / ............. 16.54 mb 1234.00 ms - 500 POST /foofoofo... 24.65 mb 4567854.00 ms + 200 GET /welcome ......... 16.59 mb 10.00 ms + 404 POST / ............. 19.45 mb 1234.00 ms + 500 POST /foofoofo... 28.99 mb 4567854.00 ms EOF, $output->fetch()); }