Skip to content

Commit

Permalink
[BUGFIX] In report: fixed calculating field size
Browse files Browse the repository at this point in the history
  • Loading branch information
hasherezade committed Sep 12, 2024
1 parent 54f3693 commit 25b696f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hh_report.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ size_t HHScanReport::reportsToString(std::wstringstream& stream, bool suspicious
if (!scannedCount) {
return printed;
}
const size_t max_len = size_t(std::floor(std::log10(double(scannedCount - 1))) + 1) % 100;
const size_t max_len = size_t(std::floor(std::log10(double(scannedCount))) + 1) % 100;
for (auto itr = this->pidToReport.begin(); itr != pidToReport.end(); ++itr) {
DWORD pid = itr->first;
if (suspiciousOnly) {
Expand Down

0 comments on commit 25b696f

Please sign in to comment.