Renamed to ping-internet.ps1

This commit is contained in:
Markus Fleschutz 2024-10-14 17:17:28 +02:00
parent 53381691df
commit 34b569cbc7
2 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ Write-Host "`n N E T W O R K" -foregroundColor green
& "$PSScriptRoot/ping-local-devices.ps1"
& "$PSScriptRoot/check-vpn.ps1"
& "$PSScriptRoot/list-internet-ip.ps1"
& "$PSScriptRoot/ping-remote-hosts.ps1"
& "$PSScriptRoot/ping-internet.ps1"
& "$PSScriptRoot/check-dns.ps1"
& "$PSScriptRoot/list-ssh-key.ps1"
exit 0 # success

View File

@ -6,8 +6,8 @@
.PARAMETER hosts
Specifies the hosts to ping, seperated by commata (10 Internet servers by default)
.EXAMPLE
PS> ./ping-remote-hosts.ps1
Internet latency 12ms (9...18ms range)
PS> ./ping-internet.ps1
Internet ping latency 12ms (9...18ms range)
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
@ -36,7 +36,7 @@ try {
Write-Host "⚠️ Internet offline (100% ping loss)"
} elseif ($loss -eq 0) {
$avg /= $success
Write-Host "✅ Internet latency $($avg)ms ($($min)...$($max)ms range)"
Write-Host "✅ Internet ping latency $($avg)ms ($($min)...$($max)ms range)"
} else {
$avg /= $success
Write-Host "✅ Online with $loss/$total ping loss and $($min)...$($max)ms latency - $($avg)ms average"