You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Scripts/ScanPortsAsync.ps1
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -267,9 +267,9 @@ Process{
267
267
Write-Host"Waiting for jobs to complete...`t`t"-ForegroundColor Yellow -NoNewline
268
268
269
269
Do {
270
-
Start-Sleep-Milliseconds 500
271
-
272
270
Write-Progress-Activity "Waiting for jobs to complete... ($($Threads-$($RunspacePool.GetAvailableRunspaces())) of $Threads threads running)"-Id 1-PercentComplete (($Jobs.Count-$($($Jobs|Where-Object {$_.Result.IsCompleted-eq$false}).Count)) /$Jobs.Count*100) -Status "$(@($($Jobs|Where-Object {$_.Result.IsCompleted-eq$false})).Count) remaining..."
271
+
272
+
Start-Sleep-Milliseconds 500
273
273
} While ($Jobs.Result.IsCompleted-contains$false)
274
274
275
275
Write-Host"["-ForegroundColor Gray -NoNewline; Write-Host"Done"-ForegroundColor Green -NoNewline; Write-Host"]"-ForegroundColor Gray
0 commit comments