From 781f011419edaf638decc9c1745d059ac840dcc6 Mon Sep 17 00:00:00 2001 From: Simon Zolin Date: Fri, 4 Sep 2020 14:23:51 +0300 Subject: [PATCH] * call debug.FreeOSMemory() once in 5 minutes --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index eebcd5c4..0f9d8d7f 100644 --- a/main.go +++ b/main.go @@ -40,7 +40,7 @@ func memoryUsage() { // periodically call "debug.FreeOSMemory" so // that the OS could reclaim the free memory go func() { - ticker := time.NewTicker(15 * time.Second) + ticker := time.NewTicker(5 * time.Minute) for { select { case t := <-ticker.C: