run GC only every 15 minutes

master
Dirk Heilig 2024-09-23 15:03:59 +02:00
parent 16c6fe5704
commit fc0ac95e98
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ while ($isRunning) {
$mqtt->loop(100); $mqtt->loop(100);
} }
if ($lastGC + 60 < time()) { if ($lastGC + 60*15 < time()) {
logit("doing Garbage collection..."); logit("doing Garbage collection...");
$c = gc_collect_cycles(); $c = gc_collect_cycles();
logit("Garbage collection done, $c cycles collected"); logit("Garbage collection done, $c cycles collected");