From e87f9c514e542955d86574aa230edc0622478dac Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Sat, 5 Oct 2019 22:32:44 +0200 Subject: [PATCH] Fixed flushing of not required cached entries --- lib/daemons/Start-IcingaServiceCheckDaemon.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/daemons/Start-IcingaServiceCheckDaemon.psm1 b/lib/daemons/Start-IcingaServiceCheckDaemon.psm1 index 5873cf8..edfd838 100644 --- a/lib/daemons/Start-IcingaServiceCheckDaemon.psm1 +++ b/lib/daemons/Start-IcingaServiceCheckDaemon.psm1 @@ -90,7 +90,7 @@ function Start-IcingaServiceCheckTask() # Flush data we no longer require in our cache to free memory foreach ($entry in $OldData.Keys) { foreach ($key in $OldData[$entry].Keys) { - Remove-IcingaHashtableItem -Hashtable $Results[$entry] -Key $key + Remove-IcingaHashtableItem -Hashtable $Results[$entry] -Key $key.Name } }