From 7ba91a4a22bdf8466e6c7752cd4d888c2efd62dc Mon Sep 17 00:00:00 2001 From: "andy.boot" Date: Wed, 4 Dec 2019 20:49:45 +0000 Subject: [PATCH] Rename variable cpu -> threads. threads more accurately represents the number of threads we will start to run --- src/utils/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/mod.rs b/src/utils/mod.rs index 5e649d2..6774b25 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -83,13 +83,13 @@ fn examine_dir( inodes: &mut HashSet<(u64, u64)>, data: &mut HashMap, file_count_no_permission: &mut u64, - cpus: Option, + threads: Option, ) { let mut iter = WalkDir::new(top_dir) .preload_metadata(true) .skip_hidden(false); - if let Some(cpus) = cpus { - iter = iter.num_threads(cpus); + if let Some(threads_to_start) = threads { + iter = iter.num_threads(threads_to_start); } for entry in iter { if let Ok(e) = entry {