From 3d83678e0655696dc2d1f3eb4c46502670586162 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 2 Mar 2024 01:43:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E5=A4=A9=E6=89=8D=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index cd5e9d6..e17326c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -63,6 +63,8 @@ pub struct Command { pub report_interval: u64, } +/// 大概的预计速度 +/// 来自 5600X 的运行效率 pub const GUESS_SPEED: u64 = 623772; #[inline(always)] @@ -102,7 +104,7 @@ fn cacl(config: Command, id: u64, outfile: &PathBuf) { let d_t: std::time::Duration = now.duration_since(start_time); let new_run_speed = k as f64 / d_t.as_secs_f64(); // 根据实际运行速率来调整 report_interval - report_interval = report_interval * run_speed as u64; + report_interval = config.report_interval * new_run_speed as u64; info!( "Id:{:>15} {:>2} {:.2}/s {:.3}E/d {:.2} {}", i, @@ -154,7 +156,7 @@ fn main() { info!("start: {} end: {}", cli_arg.start, cli_arg.end); info!("thread_count: {}", cli_arg.thread_count); - info!("top: {}", cli_arg.prop_expect); + info!("八围预期: {}", cli_arg.prop_expect); info!("team: {}", cli_arg.team); info!("output: {:?}", out_path);