Skip to content

Commit

Permalink
fixup! survey: add object count summary
Browse files Browse the repository at this point in the history
  • Loading branch information
dscho committed Sep 15, 2024
1 parent 241b5ab commit 5aa2888
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions builtin/survey.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,19 +378,19 @@ static void survey_report_plaintext_reachable_object_summary(struct survey_conte
strvec_push(&table.header, _("Object Type"));
strvec_push(&table.header, _("Count"));

fmt = xstrfmt("%"PRIuMAX"", objs->tags_nr);
fmt = xstrfmt("%"PRIuMAX"", (uintmax_t)objs->tags_nr);
insert_table_rowv(&table, _("Tags"), fmt, NULL);
free(fmt);

fmt = xstrfmt("%"PRIuMAX"", objs->commits_nr);
fmt = xstrfmt("%"PRIuMAX"", (uintmax_t)objs->commits_nr);
insert_table_rowv(&table, _("Commits"), fmt, NULL);
free(fmt);

fmt = xstrfmt("%"PRIuMAX"", objs->trees_nr);
fmt = xstrfmt("%"PRIuMAX"", (uintmax_t)objs->trees_nr);
insert_table_rowv(&table, _("Trees"), fmt, NULL);
free(fmt);

fmt = xstrfmt("%"PRIuMAX"", objs->blobs_nr);
fmt = xstrfmt("%"PRIuMAX"", (uintmax_t)objs->blobs_nr);
insert_table_rowv(&table, _("Blobs"), fmt, NULL);
free(fmt);

Expand Down

0 comments on commit 5aa2888

Please sign in to comment.