diff options
author | Steffen Ritter | 2024-01-25 14:45:44 +0100 |
---|---|---|
committer | Steffen Ritter | 2024-01-25 14:45:44 +0100 |
commit | 080d07b98a7f6e89fedeb1160509e29c7439e8e0 (patch) | |
tree | 3786d4da1c79fe5aad42423db5db93b37966aa01 | |
parent | [systemstatus] Better detection for latest updates timestamp (diff) | |
download | slx-admin-080d07b98a7f6e89fedeb1160509e29c7439e8e0.tar.gz slx-admin-080d07b98a7f6e89fedeb1160509e29c7439e8e0.tar.xz slx-admin-080d07b98a7f6e89fedeb1160509e29c7439e8e0.zip |
[statistics] Keep statistics longer for analysis
-rw-r--r-- | modules-available/statistics/hooks/cron.inc.php | 2 |
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 d444c672..4ba5e2f6 100644 --- a/modules-available/statistics/hooks/cron.inc.php +++ b/modules-available/statistics/hooks/cron.inc.php @@ -83,7 +83,7 @@ state_cleanup(); logstats(); if (mt_rand(1, 10) === 1) { - Database::exec("DELETE FROM statistic WHERE (UNIX_TIMESTAMP() - 86400 * 190) > dateline"); + Database::exec("DELETE FROM statistic WHERE (UNIX_TIMESTAMP() - 86400 * 365 * 2) > dateline"); if (mt_rand(1, 100) === 1) { Database::exec("OPTIMIZE TABLE statistic"); } |