From d048855eeb83e69b0da0faf0a79c28bacfd035d0 Mon Sep 17 00:00:00 2001 From: DastInDark <2350416+hitenkoku@users.noreply.github.com> Date: Mon, 26 Sep 2022 19:55:47 +0900 Subject: [PATCH] added start time in General Overview --- src/main.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index b3a4cb30..d3d71bbd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -92,6 +92,14 @@ impl App { return; } let analysis_start_time: DateTime = Local::now(); + if configs::CONFIG.read().unwrap().args.html_report.is_some() { + let output_data = vec![ + format!("- Start time: {}", analysis_start_time.format("%Y/%m/%d %H:%M")), + "".to_string(), + ]; + htmlreport::add_md_data("General Overview".to_string(), output_data); + } + // Show usage when no arguments. if std::env::args().len() == 1 { self.output_logo(); @@ -108,7 +116,6 @@ impl App { &analysis_start_time.day().to_owned() )); } - if !self.is_matched_architecture_and_binary() { AlertMessage::alert( "The hayabusa version you ran does not match your PC architecture.\nPlease use the correct architecture. (Binary ending in -x64.exe for 64-bit and -x86.exe for 32-bit.)",