Skip to content

Commit

Permalink
Fixed format of input CSV
Browse files Browse the repository at this point in the history
  • Loading branch information
NekoPavel committed Aug 18, 2020
1 parent ad10d93 commit 6619eb3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions GETPC_threads.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,13 @@ $stopWatchTotal = [System.Diagnostics.Stopwatch]::StartNew()
$pc_modelsList = Import-Csv -Delimiter ";" -Path $PSScriptRoot\all_pc_models.csv -Header 'id','hv_typ','hv_category'
$rolesList = Import-Csv -Delimiter ";" -Path $PSScriptRoot\roles.csv -Header 'id','role'
$aioList = Import-Csv -Delimiter "," -Path $PSScriptRoot\all_touch_aio.csv -Header 'name'
$pcList = Import-Csv -Delimiter "," -Path $pathToCsv -Header 'pcName' -Encoding UTF8
$pcList = Import-Csv -Delimiter ";" -Path $pathToCsv -Header 'pcName' -Encoding UTF8
#$running = $false

#Write-Host "List import" $stopWatchOuter.Elapsed.TotalMilliseconds


$job = $pcList | ForEach-Object -AsJob -ThrottleLimit 48 -Parallel $findPC

while ($job.State -eq "Running" -or $PCObjects.Count -gt 0) {
if ($PcObjects.Count -gt 0) {
$tempObj = New-Object -TypeName PSObject
Expand Down

0 comments on commit 6619eb3

Please sign in to comment.