diff --git a/Scripts/check-cpu.ps1 b/Scripts/check-cpu.ps1 index a53b7ef6..b353fd8c 100755 --- a/Scripts/check-cpu.ps1 +++ b/Scripts/check-cpu.ps1 @@ -74,8 +74,8 @@ try { $Socket = "$($Details.SocketDesignation) socket, " } $Cores = [System.Environment]::ProcessorCount + Write-Progress -completed "done." Write-Host "$Status $CPUName ($Cores cores, $($DeviceID)$($Speed)$($Socket)$Temp)" - Write-Progress -completed "Querying CPU details finished." exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" diff --git a/Scripts/check-ping.ps1 b/Scripts/check-ping.ps1 index 89c1c249..ae9131fc 100755 --- a/Scripts/check-ping.ps1 +++ b/Scripts/check-ping.ps1 @@ -20,6 +20,7 @@ try { Write-Progress "⏳ Sending a ping to 9 popular hosts..." $HostsArray = $hosts.Split(",") $Pings = Test-Connection -computerName $HostsArray -count 1 + Write-Progress -Completed "." [int]$Min = 9999999 [int]$Max = [int]$Avg = 0 @@ -30,8 +31,6 @@ try { $Avg += $Latency } $Avg /= $Pings.count - - Write-Progress -Completed "." Write-Host "✅ Ping latency is $($Min)ms...$($Max)ms, $($Avg)ms average" exit 0 # success } catch {