diff options
author | Simon Rettberg | 2019-04-04 12:37:21 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-04-04 12:37:40 +0200 |
commit | ab56a03e7559c0ff2c5fdc215bb4f1beef89dc7e (patch) | |
tree | 3897155401b0315005560312bfcc70fa948a85da /modules-available | |
parent | [dozmod] Add warning regarding clear text passwords (diff) | |
download | slx-admin-ab56a03e7559c0ff2c5fdc215bb4f1beef89dc7e.tar.gz slx-admin-ab56a03e7559c0ff2c5fdc215bb4f1beef89dc7e.tar.xz slx-admin-ab56a03e7559c0ff2c5fdc215bb4f1beef89dc7e.zip |
[statistics] Fix smartctl attribute parsing
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/statistics/inc/parser.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
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]; } } |