suppressed printdebug output
This commit is contained in:
parent
71eeccdd5a
commit
84e409c096
@ -110,13 +110,13 @@ function buildIntervals {
|
|||||||
)
|
)
|
||||||
$array = @()
|
$array = @()
|
||||||
foreach ($key in $hash.Keys){
|
foreach ($key in $hash.Keys){
|
||||||
Write-Host $key
|
#Write-Host $key
|
||||||
$list = $hash.$key
|
$list = $hash.$key
|
||||||
Write-Host $list
|
#Write-Host $list
|
||||||
$lastState = $null
|
$lastState = $null
|
||||||
$lastTS = $null
|
$lastTS = $null
|
||||||
foreach ($elem in $list){
|
foreach ($elem in $list){
|
||||||
Write-Host $elem
|
#Write-Host $elem
|
||||||
if (($elem.state -eq 'Started') -and ($null -eq $lastState)) {
|
if (($elem.state -eq 'Started') -and ($null -eq $lastState)) {
|
||||||
$lastState=$elem.state
|
$lastState=$elem.state
|
||||||
$lastTS=$elem.ts
|
$lastTS=$elem.ts
|
||||||
@ -131,7 +131,7 @@ function buildIntervals {
|
|||||||
$lastState=$null
|
$lastState=$null
|
||||||
$lastTS=$null
|
$lastTS=$null
|
||||||
}
|
}
|
||||||
Write-Host "$array"
|
#Write-Host "$array"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $array
|
return $array
|
||||||
|
Loading…
Reference in New Issue
Block a user