Skip to content

Commit

Permalink
Merge pull request #1488 from Yamato-Security/1487-fix-terminal-table…
Browse files Browse the repository at this point in the history
…-broken

fix: broken terminal Table/Progress bar completion
  • Loading branch information
YamatoSecurity authored Nov 12, 2024
2 parents 730aec8 + 1a97386 commit 00b062b
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1615,6 +1615,16 @@ impl App {
pb.inc(1);
}
}
let is_timeline_cmd = !(stored_static.metrics_flag
|| stored_static.logon_summary_flag
|| stored_static.search_flag
|| stored_static.pivot_keyword_list_flag
|| stored_static.computer_metrics_flag
|| stored_static.log_metrics_flag);

if !is_timeline_cmd {
pb.finish_with_message("Scanning finished.");
}
CHECKPOINT
.lock()
.as_mut()
Expand All @@ -1637,13 +1647,7 @@ impl App {
} else if stored_static.log_metrics_flag {
tl.log_metrics_dsp_msg(stored_static)
}
if !(stored_static.metrics_flag
|| stored_static.logon_summary_flag
|| stored_static.search_flag
|| stored_static.pivot_keyword_list_flag
|| stored_static.computer_metrics_flag
|| stored_static.log_metrics_flag)
{
if is_timeline_cmd {
let mut log_records = detection.add_aggcondition_msges(&self.rt, stored_static);
if stored_static.is_low_memory {
let empty_ids = HashSet::new();
Expand Down

0 comments on commit 00b062b

Please sign in to comment.