[FEATURE] When run in quier mode, print summary only if suspicious found

This commit is contained in:
hasherezade
2024-06-08 11:39:13 -07:00
parent ffee852bac
commit f52e47af02
+3 -1
View File
@@ -219,7 +219,9 @@ void runHHScan(std::uint32_t pid)
HHScanReport* report = hhunter.scan();
if (report)
{
hhunter.summarizeScan(report);
if (!g_hh_args.quiet || report->countSuspicious()) {
hhunter.summarizeScan(report);
}
delete report;
}
}