Исправлен вывод результатов DPI (#13066)
This commit is contained in:
parent
4456f6ee1c
commit
8b47f91512
1 changed files with 10 additions and 3 deletions
|
|
@ -894,13 +894,20 @@ try {
|
||||||
foreach ($targetRes in $results) {
|
foreach ($targetRes in $results) {
|
||||||
$id = $targetRes.TargetId
|
$id = $targetRes.TargetId
|
||||||
$provider = $targetRes.Provider
|
$provider = $targetRes.Provider
|
||||||
Add-Content $resultFile " Target: $id ($provider)"
|
$country = $targetRes.Country
|
||||||
|
if ($country) {
|
||||||
|
Add-Content $resultFile " Target: [$country] $id ($provider)"
|
||||||
|
} else {
|
||||||
|
Add-Content $resultFile " Target: $id ($provider)"
|
||||||
|
}
|
||||||
foreach ($line in $targetRes.Lines) {
|
foreach ($line in $targetRes.Lines) {
|
||||||
$test = $line.TestLabel
|
$test = $line.TestLabel
|
||||||
$code = $line.Code
|
$code = $line.Code
|
||||||
$size = $line.SizeKB
|
$up = $line.UpKB
|
||||||
|
$down = $line.DownKB
|
||||||
|
$time = $line.Time
|
||||||
$status = $line.Status
|
$status = $line.Status
|
||||||
Add-Content $resultFile " ${test}: code=${code} size=${size} KB status=${status}"
|
Add-Content $resultFile " ${test}: code=${code} up=${up} KB down=${down} KB time=${time}s status=${status}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue