Skip to content

Commit

Permalink
UI(afterfact): to show default powershell environment, limited output…
Browse files Browse the repository at this point in the history
… char size in alerts table to 50chars #1071
  • Loading branch information
hitenkoku committed Jun 3, 2023
1 parent e658160 commit b6ed1e0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/afterfact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1121,9 +1121,13 @@ fn _print_detection_summary_tables(
5
};
for x in sorted_detections.iter().take(take_cnt) {
let output_title = if x.0 .0.len() > 47 {
format!("{}...", &x.0 .0[..47])
} else {
x.0 .0.to_string()
};
col_output.push(format!(
"{} ({})",
x.0 .0,
"{output_title} ({})",
x.1.to_formatted_string(&Locale::en)
));
}
Expand Down

0 comments on commit b6ed1e0

Please sign in to comment.