summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/api.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2023-01-20 15:36:11 +0100
committerSimon Rettberg2023-01-20 15:36:11 +0100
commit1861c25a106ac76f33818b8f5c3042b7e5a29aac (patch)
treece0ceb876548a25193da672efba29c905ea007f1 /modules-available/statistics/api.inc.php
parent[eventlog] Sort dropdown, fix sample data display (diff)
downloadslx-admin-1861c25a106ac76f33818b8f5c3042b7e5a29aac.tar.gz
slx-admin-1861c25a106ac76f33818b8f5c3042b7e5a29aac.tar.xz
slx-admin-1861c25a106ac76f33818b8f5c3042b7e5a29aac.zip
[statistics] Expose proper id44/45 values in ~poweron event filtering
Diffstat (limited to 'modules-available/statistics/api.inc.php')
-rw-r--r--modules-available/statistics/api.inc.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules-available/statistics/api.inc.php b/modules-available/statistics/api.inc.php
index 0a5ba54c..bcc55944 100644
--- a/modules-available/statistics/api.inc.php
+++ b/modules-available/statistics/api.inc.php
@@ -168,7 +168,12 @@ if ($type[0] === '~') {
}
if ($json !== false) {
- HardwareParser::parseMachine($uuid, $json);
+ $ret = HardwareParser::parseMachine($uuid, $json);
+ if ($ret !== null) {
+ // This data is more accurate and ends up in the DB anyways, so use it for event filtering too
+ $new['id44mb'] = $ret['id44mb'];
+ $new['id45mb'] = $ret['id45mb'];
+ }
}
// Check for suspicious hardware changes