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: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,11 @@ This powerful asynchronus IPv4 Network Scanner for PowerShell allows you to scan
8
8
9
9
The default result will contain the the IPv4-Address, Status (Up or Down) and the Hostname. Other values can be displayed via parameter (Try Get-Help for more details).
To reach the best possible performance, this script uses a [RunspacePool](https://msdn.microsoft.com/en-US/library/system.management.automation.runspaces.runspacepool(v=vs.85).aspx). As you can see in the following screenshot, the individual tasks are distributed across all cpu cores:
# If no jobs finished yet, wait 500 ms and try again
675
-
if($Jobs_ToProcess-eq$null)
674
+
if($null-eq$Jobs_ToProcess)
676
675
{
677
-
Write-Verbose"No jobs completed, wait 500ms..."
676
+
Write-Verbose-Message "No jobs completed, wait 500ms..."
678
677
679
678
Start-Sleep-Milliseconds 500
680
679
continue
@@ -693,7 +692,7 @@ Process{
693
692
694
693
Write-Progress-Activity "Waiting for jobs to complete... ($($Threads-$($RunspacePool.GetAvailableRunspaces())) of $Threads threads running)"-Id 1-PercentComplete $Progress_Percent-Status "$Jobs_Remaining remaining..."
0 commit comments