From 1777b96c201ff35636bafd2beda83b5a66756aa5 Mon Sep 17 00:00:00 2001 From: YouROK <8yourok8@mail.ru> Date: Wed, 3 Mar 2021 09:57:02 +0300 Subject: [PATCH] add free mem --- server/torr/storage/torrstor/cache.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/torr/storage/torrstor/cache.go b/server/torr/storage/torrstor/cache.go index d638705..566476f 100644 --- a/server/torr/storage/torrstor/cache.go +++ b/server/torr/storage/torrstor/cache.go @@ -173,6 +173,9 @@ func (c *Cache) cleanPieces() { break } } + if rems <= 0 { + utils.FreeOSMemGC() + } } }