diff options
author | jan <jan@ruken.pw> | 2016-10-01 18:00:20 (UTC) |
---|---|---|
committer | jan <jan@ruken.pw> | 2016-10-01 18:00:20 (UTC) |
commit | b8b1da0a95635fe9ed4ba28851906556ccc351a8 (patch) | |
tree | 85bc00543b3f6175ae77ee85421959fff751d014 /src/main.rs | |
parent | 6a130458c55de738ecced00989c74cc7125e17fe (diff) |
fertig.
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); |