summaryrefslogtreecommitdiffstats
path: root/modules-available
diff options
context:
space:
mode:
authorSimon Rettberg2025-01-28 14:49:02 +0100
committerSimon Rettberg2025-01-28 14:49:02 +0100
commitdfbff9755fe182bf0f89ce366e7865bcbd973393 (patch)
tree651ae9971ff09cbd817093011a76400e1849375d /modules-available
parent[eventlog] Cosmetic changes; nicer UI, sorting, warning, etc. (diff)
downloadslx-admin-dfbff9755fe182bf0f89ce366e7865bcbd973393.tar.gz
slx-admin-dfbff9755fe182bf0f89ce366e7865bcbd973393.tar.xz
slx-admin-dfbff9755fe182bf0f89ce366e7865bcbd973393.zip
[statistics] Increase cutoff for new machines to 30 days
Diffstat (limited to 'modules-available')
-rw-r--r--modules-available/statistics/pages/summary.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules-available/statistics/pages/summary.inc.php b/modules-available/statistics/pages/summary.inc.php
index a540e39e..5d6a58a8 100644
--- a/modules-available/statistics/pages/summary.inc.php
+++ b/modules-available/statistics/pages/summary.inc.php
@@ -272,8 +272,9 @@ class SubPage
private static function showLatestMachines(StatisticsFilterSet $filterSet): void
{
+ $args = [];
$filterSet->makeFragments($where, $join, $args);
- $args['cutoff'] = ceil(time() / 3600) * 3600 - 86400 * 10;
+ $args['cutoff'] = ceil(time() / 3600) * 3600 - 86400 * 30;
$res = Database::simpleQuery("SELECT m.machineuuid, m.clientip, m.hostname, m.firstseen, m.mbram, m.kvmstate, m.id44mb
FROM machine m $join