From afdaabc0a844b593e224436b6c16bcafe512d09f Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Wed, 8 Mar 2023 09:24:02 +0100 Subject: [PATCH] Update check-dns.ps1 --- Scripts/check-dns.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Scripts/check-dns.ps1 b/Scripts/check-dns.ps1 index f87fc0ed..ca2b05cb 100755 --- a/Scripts/check-dns.ps1 +++ b/Scripts/check-dns.ps1 @@ -26,12 +26,12 @@ try { [float]$Elapsed = $StopWatch.Elapsed.TotalSeconds $Average = [math]::round($NumRows / $Elapsed, 1) - Write-Progress -completed "." if ($Average -gt 10.0) { - Write-Host "✅ DNS resolution is $Average domains per second" + "✅ DNS resolution is $Average domains per second" } 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 } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"