From fc0ac95e98550dcdc0d8b89bf37f42cfc86e3e24 Mon Sep 17 00:00:00 2001 From: Dirk Heilig Date: Mon, 23 Sep 2024 15:03:59 +0200 Subject: [PATCH] run GC only every 15 minutes --- mqtt2prom/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mqtt2prom/run b/mqtt2prom/run index 0f6fa81..fa15699 100755 --- a/mqtt2prom/run +++ b/mqtt2prom/run @@ -140,7 +140,7 @@ while ($isRunning) { $mqtt->loop(100); } - if ($lastGC + 60 < time()) { + if ($lastGC + 60*15 < time()) { logit("doing Garbage collection..."); $c = gc_collect_cycles(); logit("Garbage collection done, $c cycles collected");