summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2019-04-04 12:37:21 +0200
committerSimon Rettberg2019-04-04 12:37:21 +0200
commitee3b963b07302b4fe05c911d98877bb406ba4f6e (patch)
treef3c516cbcd7a9daf94ed674e68d2702a55bc3fec
parent[dozmod] Add warning regarding clear text passwords (diff)
downloadslx-admin-ee3b963b07302b4fe05c911d98877bb406ba4f6e.tar.gz
slx-admin-ee3b963b07302b4fe05c911d98877bb406ba4f6e.tar.xz
slx-admin-ee3b963b07302b4fe05c911d98877bb406ba4f6e.zip
[statistics] Fix smartctl attribute parsing
-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];
}
}