Updated the manuals

This commit is contained in:
Markus Fleschutz
2024-08-15 09:51:46 +02:00
parent 654d1a18d0
commit e1ffab5509
633 changed files with 2120 additions and 973 deletions

View File

@@ -26,7 +26,7 @@ Example
-------
```powershell
PS> ./ping-remote-hosts.ps1
Online with 18ms latency (13...109ms, 0/10 ping loss)
Online with 0/10 ping loss and 11...40ms latency - 18ms average
```
@@ -50,7 +50,7 @@ Script Content
Specifies the hosts to ping, seperated by commata (10 Internet servers by default)
.EXAMPLE
PS> ./ping-remote-hosts.ps1
✅ Online with 18ms latency (13...109ms, 0/10 ping loss)
✅ Online with 0/10 ping loss and 11...40ms latency - 18ms average
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
@@ -61,7 +61,7 @@ param([string]$hosts = "bing.com,cnn.com,dropbox.com,github.com,google.com,ibm.c
try {
$hostsArray = $hosts.Split(",")
$tasks = $hostsArray | foreach { (New-Object Net.NetworkInformation.Ping).SendPingAsync($_,750) }
$tasks = $hostsArray | foreach { (New-Object Net.NetworkInformation.Ping).SendPingAsync($_,1000) }
[int]$min = 9999999
[int]$max = [int]$avg = [int]$success = 0
[int]$total = $hostsArray.Count
@@ -77,7 +77,7 @@ try {
[int]$loss = $total - $success
if ($success -ne 0) {
$avg /= $success
Write-Host "✅ Online with $($avg)ms latency ($($min)...$($max)ms, $loss/$total ping loss)"
Write-Host "✅ Online with $loss/$total ping loss and $($min)...$($max)ms latency - $($avg)ms average"
} else {
Write-Host "⚠️ Offline ($loss/$total ping loss)"
}
@@ -88,4 +88,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 using the comment-based help of ping-remote-hosts.ps1 as of 05/19/2024 10:25:24)*
*(generated by convert-ps2md.ps1 using the comment-based help of ping-remote-hosts.ps1 as of 08/15/2024 09:50:52)*