Skip to content

Commit 648dc1c

Browse files
committed
fixup! survey: summarize total sizes by object type
1 parent e42c3e6 commit 648dc1c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

builtin/survey.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -421,10 +421,8 @@ static void survey_report_object_sizes(const char *title,
421421
struct survey_table table = SURVEY_TABLE_INIT;
422422
table.table_name = title;
423423

424-
strvec_push(&table.header, xstrdup(categories));
425-
strvec_push(&table.header, xstrdup(_("Count")));
426-
strvec_push(&table.header, xstrdup(_("Disk Size")));
427-
strvec_push(&table.header, xstrdup(_("Inflated Size")));
424+
strvec_pushl(&table.header, categories,
425+
_("Count"), _("Disk Size"), ("Inflated Size"), NULL);
428426

429427
for (size_t i = 0; i < summary_nr; i++) {
430428
insert_table_rowv(&table, xstrdup(summary[i].label),

0 commit comments

Comments
 (0)