From ee3b963b07302b4fe05c911d98877bb406ba4f6e Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 4 Apr 2019 12:37:21 +0200 Subject: [statistics] Fix smartctl attribute parsing --- modules-available/statistics/inc/parser.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules-available/statistics/inc/parser.inc.php b/modules-available/statistics/inc/parser.inc.php index 121a2817..4e0740fc 100644 --- a/modules-available/statistics/inc/parser.inc.php +++ b/modules-available/statistics/inc/parser.inc.php @@ -307,7 +307,7 @@ class Parser { } if (preg_match('/^([A-Z][^:]+):\s*(.*)$/', $line, $out)) { $dev['s_' . preg_replace('/\s|-|_/', '', $out[1])] = $out[2]; - } elseif (preg_match('/^\s*\d+\s+(\S+)\s+\S+\s+\d+\s+\d+\s+\d+\s+\S+\s+(\d+)(\s|$)/', $line, $out)) { + } elseif (preg_match('/^\s*\d+\s+(\S+)\s+\S+\s+\d+\s+\d+\s+\S+\s+\S+\s+(\d+)(\s|$)/', $line, $out)) { $dev['s_' . preg_replace('/\s|-|_/', '', $out[1])] = $out[2]; } } -- cgit v1.2.3-55-g7522