src/main.cpp

changeset 75
857af79337d5
parent 73
707f42bb0484
--- a/src/main.cpp	Fri Feb 06 16:23:50 2026 +0100
+++ b/src/main.cpp	Fri Feb 06 18:44:47 2026 +0100
@@ -309,9 +309,10 @@
             html::chart_begin(repo, author);
 
             const auto commits_per_month = heatmap.commits_per_month(repo, author, report_year);
-            const auto total_commits = std::accumulate(commits_per_month.begin(), commits_per_month.end(), 0u);
+            const auto total_commits = std::accumulate(commits_per_month.begin(), commits_per_month.end(), 0u,
+                [](unsigned sum, const auto &summary) { return sum + summary.count(); });
             html::heading_author(author, total_commits);
-            html::table_begin(report_year, commits_per_month);
+            html::table_begin(report_year, settings.separate, commits_per_month);
 
             // initialize counters
             unsigned column = 0, row = 0;

mercurial