From 7813fd6ac6e6b9d80a5aed2048b4b99a38de2d28 Mon Sep 17 00:00:00 2001 From: DustInDark Date: Thu, 23 Dec 2021 11:42:58 +0900 Subject: [PATCH] reduced statistics start output each file #341 --- src/main.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index f0feeb1a..6bb33feb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -85,6 +85,9 @@ impl App { return; } } + if *STATISTICS_FLAG { + println!("Generating Event ID Statistics"); + } if let Some(filepath) = configs::CONFIG.read().unwrap().args.value_of("filepath") { if !filepath.ends_with(".evtx") { AlertMessage::alert( @@ -227,9 +230,7 @@ impl App { let mut tl = Timeline::new(); let mut parser = parser.unwrap(); let mut records = parser.records_json_value(); - if *STATISTICS_FLAG { - println!("Generating Event ID Statistics"); - } + loop { let mut records_per_detect = vec![]; while records_per_detect.len() < MAX_DETECT_RECORDS {