From d8bc45451ec030a816b82e0099dd2ce097d2b45a Mon Sep 17 00:00:00 2001 From: Wildan M Date: Mon, 12 Jul 2021 23:21:39 +0700 Subject: [PATCH] Fix regex order --- src/status/main.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/status/main.php b/src/status/main.php index 05acae3..4888f46 100644 --- a/src/status/main.php +++ b/src/status/main.php @@ -57,12 +57,12 @@ function stripFirstLine($text) $df[$dfk] = array_map(function ($x) { return [ - 'name' => $x[0], - 'total' => $x[1], - 'used' => $x[2], - 'free' => $x[3], - 'usage' => $x[4], - 'mount' => $x[5], + 'name' => $x[1], + 'total' => $x[2], + 'used' => $x[3], + 'free' => $x[4], + 'usage' => $x[5], + 'mount' => $x[6], ]; }, $matches); }