|
|
|
@ -983,7 +983,7 @@ if ($mirrors_response.StatusCode -eq 200) {
|
|
|
|
|
#need to ensure latency cast to integer (on powershell 5 at least) |
|
|
|
|
$sorted_mirror_dicts = $list_mirror_dicts | Sort-Object -Property { [int]$_.latency } |
|
|
|
|
#Write-Host "Sorted by latency: $($sorted_mirror_dicts | Format-Table -AutoSize | Out-String)" |
|
|
|
|
Write-Host "Sorted by latency: $($sorted_mirror_dicts | Format-List -AutoSize | Out-String)" |
|
|
|
|
Write-Host "Sorted by latency: $($sorted_mirror_dicts | Out-String)" |
|
|
|
|
$automation_name = "punkshell+julian@precisium.com.au_target_by_latency" |
|
|
|
|
|
|
|
|
|
foreach ($hostinfo in $sorted_mirror_dicts) { |
|
|
|
|