Update cli_arg.top to cli_arg.prop_expect

This commit is contained in:
shenjack 2024-03-02 01:39:04 +08:00
parent abae292c5e
commit 754aaa0e2e
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -154,7 +154,7 @@ fn main() {
info!("start: {} end: {}", cli_arg.start, cli_arg.end); info!("start: {} end: {}", cli_arg.start, cli_arg.end);
info!("thread_count: {}", cli_arg.thread_count); info!("thread_count: {}", cli_arg.thread_count);
info!("top: {}", cli_arg.top); info!("top: {}", cli_arg.prop_expect);
info!("team: {}", cli_arg.team); info!("team: {}", cli_arg.team);
info!("output: {:?}", out_path); info!("output: {:?}", out_path);
@ -163,17 +163,11 @@ fn main() {
let cli = cli_arg.clone(); let cli = cli_arg.clone();
let out_path = out_path.clone(); let out_path = out_path.clone();
let thread_name = format!("thread_{}", i); let thread_name = format!("thread_{}", i);
let thread_count = cli_arg.thread_count;
let team = cli_arg.team.clone();
threads.push(std::thread::spawn(move || { threads.push(std::thread::spawn(move || {
info!("线程 {} 开始计算", thread_name); info!("线程 {} 开始计算", thread_name);
cacl( cacl(
cli.start, cli,
cli.end as u64, n,
thread_count as usize,
cli.top as u32,
n as u64,
&team,
&out_path, &out_path,
); );
info!("线程 {} 结束计算", thread_name); info!("线程 {} 结束计算", thread_name);