mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-16 11:40:53 +01:00
Update check-dns.ps1
This commit is contained in:
parent
8bba46a997
commit
afdaabc0a8
@ -26,12 +26,12 @@ try {
|
|||||||
[float]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
[float]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||||
|
|
||||||
$Average = [math]::round($NumRows / $Elapsed, 1)
|
$Average = [math]::round($NumRows / $Elapsed, 1)
|
||||||
Write-Progress -completed "."
|
|
||||||
if ($Average -gt 10.0) {
|
if ($Average -gt 10.0) {
|
||||||
Write-Host "✅ DNS resolution is $Average domains per second"
|
"✅ DNS resolution is $Average domains per second"
|
||||||
} else {
|
} else {
|
||||||
Write-Host "⚠️ DNS resolution is $Average domains per second only!"
|
"⚠️ DNS resolution is $Average domains per second only!"
|
||||||
}
|
}
|
||||||
|
Write-Progress -completed "Done."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
Loading…
Reference in New Issue
Block a user