removed search for last started as started might also be malformed and consecutive fails are skipped already. will now always take the last known timestamp
This commit is contained in:
parent
d9eb681007
commit
932738895a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user