From a363399608837c01ebb2dc858df00e8ec8fc1ffa Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Sun, 6 Oct 2019 16:07:12 +0200 Subject: [PATCH] Fixed error on removing hashtable cache content --- 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 e9b6bba..bff4d41 100644 --- a/lib/daemons/Start-IcingaServiceCheckDaemon.psm1 +++ b/lib/daemons/Start-IcingaServiceCheckDaemon.psm1 @@ -91,7 +91,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 $$IcingaDaemonData.BackgroundDaemon.ServiceCheckScheduler[$CheckCommand]['results'][$entry] -Key $key.Name + Remove-IcingaHashtableItem -Hashtable $IcingaDaemonData.BackgroundDaemon.ServiceCheckScheduler[$CheckCommand]['results'][$entry] -Key $key.Name } }