fixed stupidity

This commit is contained in:
partisan 2024-12-27 08:09:18 +01:00
commit 7886a3e60f

View file

@ -162,7 +162,7 @@ func (rc *ResultsCache) keyToString(key CacheKey) string {
// checkAndCleanCache removes items if memory usage exceeds the limit.
func (rc *ResultsCache) checkAndCleanCache() {
for rc.currentMemoryUsage() > config.RamCache.MaxUsageBytes {
if rc.currentMemoryUsage() > config.RamCache.MaxUsageBytes {
rc.cleanOldestItems()
}
}