Исправлен вывод результатов DPI (#13066)

This commit is contained in:
Artyom Bebroy 2026-05-06 20:52:13 +05:00 committed by GitHub
parent 4456f6ee1c
commit 8b47f91512
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -894,13 +894,20 @@ try {
foreach ($targetRes in $results) {
$id = $targetRes.TargetId
$provider = $targetRes.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) {
$test = $line.TestLabel
$code = $line.Code
$size = $line.SizeKB
$up = $line.UpKB
$down = $line.DownKB
$time = $line.Time
$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}"
}
}
}