summaryrefslogtreecommitdiffstats
path: root/modules-available
diff options
context:
space:
mode:
authorSimon Rettberg2020-08-28 18:58:15 +0200
committerSimon Rettberg2020-08-28 18:58:15 +0200
commit0847ca78706f7309d38e66d9ce3cae9e6643377c (patch)
tree7cf63f600d198afacc61f358a44074359e9795bf /modules-available
parent[minilinux] Show which menu(entries) and locations use a version (diff)
downloadslx-admin-0847ca78706f7309d38e66d9ce3cae9e6643377c.tar.gz
slx-admin-0847ca78706f7309d38e66d9ce3cae9e6643377c.tar.xz
slx-admin-0847ca78706f7309d38e66d9ce3cae9e6643377c.zip
[statistics] Increase auto-delete timeout for old PCs from 1 to 2 years
We've had a manual delete function for quite some time now, so automatic deletion is not that important anymore. Set it to two years for now.
Diffstat (limited to 'modules-available')
-rw-r--r--modules-available/statistics/hooks/cron.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/statistics/hooks/cron.inc.php b/modules-available/statistics/hooks/cron.inc.php
index 8db6b79c..0de233a8 100644
--- a/modules-available/statistics/hooks/cron.inc.php
+++ b/modules-available/statistics/hooks/cron.inc.php
@@ -65,7 +65,7 @@ if (mt_rand(1, 10) === 1) {
}
}
if (mt_rand(1, 10) === 1) {
- Database::exec("DELETE FROM machine WHERE (UNIX_TIMESTAMP() - 86400 * 365) > lastseen");
+ Database::exec("DELETE FROM machine WHERE (UNIX_TIMESTAMP() - 86400 * 365 * 2) > lastseen");
if (mt_rand(1, 100) === 1) {
Database::exec("OPTIMIZE TABLE machine");
}