Skip to content

Commit

Permalink
- Use Length of array
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaBear84 committed Jun 5, 2019
1 parent a73e45f commit 288fc7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenDirectoryDownloader/OpenDirectoryIndexer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,14 @@ public async void StartIndexingAsync()

IndexingTaskCTS = new CancellationTokenSource();

for (int i = 1; i <= OpenDirectoryIndexerSettings.Threads; i++)
for (int i = 1; i <= WebDirectoryProcessors.Length; i++)
{
string processorId = i.ToString();

WebDirectoryProcessors[i - 1] = WebDirectoryProcessor(WebDirectoriesQueue, $"Processor {processorId}", IndexingTaskCTS.Token);
}

for (int i = 1; i <= OpenDirectoryIndexerSettings.Threads; i++)
for (int i = 1; i <= WebFileFileSizeProcessors.Length; i++)
{
string processorId = i.ToString();

Expand Down

0 comments on commit 288fc7d

Please sign in to comment.