diff --git a/Extractor.ps1 b/Extractor.ps1 index 26cfc14..ad8bc7d 100644 --- a/Extractor.ps1 +++ b/Extractor.ps1 @@ -65,13 +65,7 @@ function ProduceHashMap { } } catch { - foreach ($i in (($array.Count-1)..0)){ - #Write-Host $array[$i] - if ($array[$i]["state"] -eq 'Started') { - #Write-Host "found started" - $timeStamp = ($array[$i]).ts - } - } + $timeStamp = ($array[$array.Count-1]).ts $array += New-Object psobject -Property @{ state = $backUpState ts = $timeStamp