From af94f582c4eca6bae27175f087222b50387b58e2 Mon Sep 17 00:00:00 2001 From: DustInDark Date: Wed, 29 Jun 2022 00:07:12 +0900 Subject: [PATCH] added deep-scan flag check to event id filtering condition #608 --- src/main.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 204fc302..74793983 100644 --- a/src/main.rs +++ b/src/main.rs @@ -593,11 +593,15 @@ impl App { continue; } - // target_eventids.txtでフィルタする。 + // target_eventids.txtでイベントIDベースでフィルタする。 let data = record_result.as_ref().unwrap().data.clone(); - let timestamp = record_result.unwrap().timestamp; + if !self._is_target_event_id(&data) && !configs::CONFIG.read().unwrap().args.deep_scan { + continue; + } - if !self._is_target_event_id(&data) || !time_filter.is_target(&Some(timestamp)) { + // EventID側の条件との条件の混同を防ぐため時間でのフィルタリングの条件分岐を分離した + let timestamp = record_result.unwrap().timestamp; + if !time_filter.is_target(&Some(timestamp)) { continue; }