From 6c45754d5babe0e5f5aaf9c35698911368ee02e8 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 17 May 2022 13:36:44 +0200 Subject: [statistics] Client details: Display booted system and bootup duration --- modules-available/statistics/api.inc.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules-available/statistics/api.inc.php') 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') { -- cgit v1.2.3-55-g7522