summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/inc
diff options
context:
space:
mode:
authorSimon Rettberg2019-03-19 13:52:44 +0100
committerSimon Rettberg2019-03-19 13:52:44 +0100
commitcbb3d0f368347993b61fde2a49eecd66c2e56813 (patch)
tree42dd2b9e195ca588f25e79caa1b9639ad83bbb6d /modules-available/statistics/inc
parent[roomplanner] Implement (auto)rotating SVG, make SVG pretty (diff)
downloadslx-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.php8
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'])) {