diff options
| author | Simon Rettberg | 2025-01-28 14:49:02 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2025-01-28 14:49:02 +0100 |
| commit | dfbff9755fe182bf0f89ce366e7865bcbd973393 (patch) | |
| tree | 651ae9971ff09cbd817093011a76400e1849375d | |
| parent | [eventlog] Cosmetic changes; nicer UI, sorting, warning, etc. (diff) | |
| download | slx-admin-dfbff9755fe182bf0f89ce366e7865bcbd973393.tar.gz slx-admin-dfbff9755fe182bf0f89ce366e7865bcbd973393.tar.xz slx-admin-dfbff9755fe182bf0f89ce366e7865bcbd973393.zip | |
[statistics] Increase cutoff for new machines to 30 days
| -rw-r--r-- | modules-available/statistics/pages/summary.inc.php | 3 |
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 |
