diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 8a3787b..2b96024 100644 --- a/src/main.rs +++ b/src/main.rs | |||
@@ -39,7 +39,7 @@ fn main() { | |||
39 | 39 | ||
40 | let files: Arc<Mutex<Vec<DirEntry>>> = Arc::new(Mutex::new(WalkDir::new(base_path).min_depth(1).into_iter().filter_map(|e| e.ok()).collect())); | 40 | let files: Arc<Mutex<Vec<DirEntry>>> = Arc::new(Mutex::new(WalkDir::new(base_path).min_depth(1).into_iter().filter_map(|e| e.ok()).collect())); |
41 | 41 | ||
42 | for i in 1..MAX_THREADS { | 42 | for i in 0..MAX_THREADS { |
43 | let files = files.clone(); | 43 | let files = files.clone(); |
44 | let out_files = out_files.clone(); | 44 | let out_files = out_files.clone(); |
45 | active_threads.fetch_add(1, Ordering::SeqCst); | 45 | active_threads.fetch_add(1, Ordering::SeqCst); |