We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82156d8 commit 73a3b6bCopy full SHA for 73a3b6b
1 file changed
scripts/ping-host.ps1
@@ -18,7 +18,7 @@ param([string]$hostname = "x.com")
18
19
try {
20
$remoteHosts = $hostname.Split(",")
21
- $tasks = $remoteHosts | foreach { (New-Object Net.NetworkInformation.Ping).SendPingAsync($_,3000) }
+ $tasks = $remoteHosts | foreach { (New-Object Net.NetworkInformation.Ping).SendPingAsync($_,5000) }
22
[Threading.Tasks.Task]::WaitAll($tasks)
23
foreach($ping in $tasks.Result) {
24
if ($ping.Status -eq "Success") {
0 commit comments