summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/inc/parser.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2019-04-04 12:37:21 +0200
committerSimon Rettberg2019-04-04 12:37:40 +0200
commitab56a03e7559c0ff2c5fdc215bb4f1beef89dc7e (patch)
tree3897155401b0315005560312bfcc70fa948a85da /modules-available/statistics/inc/parser.inc.php
parent[dozmod] Add warning regarding clear text passwords (diff)
downloadslx-admin-ab56a03e7559c0ff2c5fdc215bb4f1beef89dc7e.tar.gz
slx-admin-ab56a03e7559c0ff2c5fdc215bb4f1beef89dc7e.tar.xz
slx-admin-ab56a03e7559c0ff2c5fdc215bb4f1beef89dc7e.zip
[statistics] Fix smartctl attribute parsing
Diffstat (limited to 'modules-available/statistics/inc/parser.inc.php')
-rw-r--r--modules-available/statistics/inc/parser.inc.php2
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];
}
}