Fixed error on removing hashtable cache content

This commit is contained in:
Lord Hepipud 2019-10-06 16:07:12 +02:00
parent 04af3a8503
commit 993defec04

View file

@ -91,7 +91,7 @@ function Start-IcingaServiceCheckTask()
# Flush data we no longer require in our cache to free memory # Flush data we no longer require in our cache to free memory
foreach ($entry in $OldData.Keys) { foreach ($entry in $OldData.Keys) {
foreach ($key in $OldData[$entry].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
} }
} }