diff options
author | Simon Rettberg | 2019-03-19 13:52:44 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-03-19 13:52:44 +0100 |
commit | cbb3d0f368347993b61fde2a49eecd66c2e56813 (patch) | |
tree | 42dd2b9e195ca588f25e79caa1b9639ad83bbb6d /modules-available/statistics/inc | |
parent | [roomplanner] Implement (auto)rotating SVG, make SVG pretty (diff) | |
download | slx-admin-cbb3d0f368347993b61fde2a49eecd66c2e56813.tar.gz slx-admin-cbb3d0f368347993b61fde2a49eecd66c2e56813.tar.xz slx-admin-cbb3d0f368347993b61fde2a49eecd66c2e56813.zip |
[statistics] Feature: BIOS update info
Fetch list of known BIOS updates that fix issues wrt.
bwLehrpool/OpenSLX/whatever it's called today.
Diffstat (limited to 'modules-available/statistics/inc')
-rw-r--r-- | modules-available/statistics/inc/parser.inc.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules-available/statistics/inc/parser.inc.php b/modules-available/statistics/inc/parser.inc.php index 8ac3fcf3..121a2817 100644 --- a/modules-available/statistics/inc/parser.inc.php +++ b/modules-available/statistics/inc/parser.inc.php @@ -87,6 +87,14 @@ class Parser { if (preg_match('/^\s*Configured Clock Speed:\s*(\d.*?)\s*$/i', $line, $out)) { $ramClockSpeed = $out[1]; } + } elseif ($section === 'BIOS Information') { + if (preg_match(',^\s*Release Date:\s*(\d{2}/\d{2}/\d{4})\s*$,i', $line, $out)) { + $row['biosdate'] = date('d.m.Y', strtotime($out[1])); + } elseif (preg_match('/^\s*BIOS Revision:\s*(.*?)\s*$/i', $line, $out)) { + $row['biosrevision'] = $out[1]; + } elseif (preg_match('/^\s*Version:\s*(.*?)\s*$/i', $line, $out)) { + $row['biosversion'] = $out[1]; + } } } if (empty($row['ramslotcount'])) { |