summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/api.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2022-05-17 13:36:44 +0200
committerSimon Rettberg2022-05-17 13:36:44 +0200
commit6c45754d5babe0e5f5aaf9c35698911368ee02e8 (patch)
tree230bafc1835cb8d64a2919ab51e0f2c93867030a /modules-available/statistics/api.inc.php
parent[inc/Util] Remove leading space in formatDuration() when < 24h (diff)
downloadslx-admin-6c45754d5babe0e5f5aaf9c35698911368ee02e8.tar.gz
slx-admin-6c45754d5babe0e5f5aaf9c35698911368ee02e8.tar.xz
slx-admin-6c45754d5babe0e5f5aaf9c35698911368ee02e8.zip
[statistics] Client details: Display booted system and bootup duration
Diffstat (limited to 'modules-available/statistics/api.inc.php')
-rw-r--r--modules-available/statistics/api.inc.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules-available/statistics/api.inc.php b/modules-available/statistics/api.inc.php
index 2d70153b..aa441b06 100644
--- a/modules-available/statistics/api.inc.php
+++ b/modules-available/statistics/api.inc.php
@@ -396,6 +396,11 @@ if ($type[0] === '~') {
'type' => HardwareInfo::SCREEN,
));
}
+
+ // Benchmarking
+ Database::exec("INSERT INTO statistic (dateline, typeid, clientip, machineuuid, username, `data`)
+ VALUES (UNIX_TIMESTAMP(), :type, :ip, :uuid, '', '')",
+ ['type' => 'graphical-startup', 'ip' => $ip, 'uuid' => $uuid]);
}
} else if ($type === '~suspend') {