Skip to content

Commit 73a3b6b

Browse files
committed
Updated ping-host.ps1
1 parent 82156d8 commit 73a3b6b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/ping-host.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ param([string]$hostname = "x.com")
1818

1919
try {
2020
$remoteHosts = $hostname.Split(",")
21-
$tasks = $remoteHosts | foreach { (New-Object Net.NetworkInformation.Ping).SendPingAsync($_,3000) }
21+
$tasks = $remoteHosts | foreach { (New-Object Net.NetworkInformation.Ping).SendPingAsync($_,5000) }
2222
[Threading.Tasks.Task]::WaitAll($tasks)
2323
foreach($ping in $tasks.Result) {
2424
if ($ping.Status -eq "Success") {

0 commit comments

Comments
 (0)