We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31ef9cf commit ac4df78Copy full SHA for ac4df78
Scripts/check-dns.ps1
@@ -26,7 +26,12 @@ try {
26
27
[float]$Elapsed = $StopWatch.Elapsed.TotalSeconds
28
$Average = [math]::round($NumRows / $Elapsed, 1)
29
- "✔️ DNS resolution is $Average domains per second"
+ if ($Average -gt 200.0) { $Rating = "excellent"
30
+ } elseif ($Average -gt 100.0) { $Rating = "quite good"
31
+ } elseif ($Average -gt 10.0) { $Rating = "good"
32
+ } else { $Rating = "poor"
33
+ }
34
+ "✔️ $Average DNS domain lookups per second - $Rating"
35
exit 0 # success
36
} catch {
37
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
0 commit comments