Fix command line statistics with --stats (#6645) (#6646)

Fixes #6645
This commit is contained in:
Geza Lore 2025-11-05 14:59:25 +00:00 committed by GitHub
parent 0853aa7515
commit 4404978765
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -50,8 +50,8 @@ class StatsReport final {
V3Statistic* lastp = nullptr;
for (const auto& itr : byName) {
V3Statistic* repp = itr.second;
if (lastp && lastp->sumit() && lastp->printit() && lastp->name() == repp->name()
&& lastp->stage() == repp->stage()) {
if (lastp && lastp->sumit() && lastp->printit() && repp->printit()
&& lastp->name() == repp->name() && lastp->stage() == repp->stage()) {
lastp->combineWith(repp);
} else {
lastp = repp;