run GC only every 15 minutes
parent
16c6fe5704
commit
fc0ac95e98
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue