Fixed flushing of not required cached entries

This commit is contained in:
Lord Hepipud 2019-10-05 22:32:44 +02:00
parent 3d5c7bc2b5
commit e87f9c514e

View file

@ -90,7 +90,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 $Results[$entry] -Key $key Remove-IcingaHashtableItem -Hashtable $Results[$entry] -Key $key.Name
} }
} }