From 6b163eb4f78788adbf3523d8b6b8094d4092f7de Mon Sep 17 00:00:00 2001 From: Gemorroj Date: Sat, 5 Dec 2020 17:24:24 +0300 Subject: [PATCH] fix mdstat count drives see https://github.com/Gemorroj/ginfo/issues/14 --- src/Linfo/OS/Linux.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Linfo/OS/Linux.php b/src/Linfo/OS/Linux.php index 8858f694..19b81184 100644 --- a/src/Linfo/OS/Linux.php +++ b/src/Linfo/OS/Linux.php @@ -833,7 +833,7 @@ public function getRAID() 'level' => $array[3], 'drives' => $drives, 'size' => Common::byteConvert($array[5] * 1024), - 'count' => $array[6], + 'count' => (int) $array[6], 'chart' => $array[7], ); }