mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-12 00:48:17 +01:00
Fix check-ping.ps1
This commit is contained in:
parent
5e1daeea5d
commit
4cd9a5a4e2
@ -17,7 +17,7 @@ try {
|
|||||||
if ($IsLinux) {
|
if ($IsLinux) {
|
||||||
[int]$Latency = $Ping.latency
|
[int]$Latency = $Ping.latency
|
||||||
} else {
|
} else {
|
||||||
[int]$Latency = $Ping.time
|
[int]$Latency = $Ping.ResponseTime
|
||||||
}
|
}
|
||||||
if ($Latency -lt $Min) { $Min = $Latency }
|
if ($Latency -lt $Min) { $Min = $Latency }
|
||||||
if ($Latency -gt $Max) { $Max = $Latency }
|
if ($Latency -gt $Max) { $Max = $Latency }
|
||||||
|
Loading…
Reference in New Issue
Block a user