Skip to content

Commit ee87869

Browse files
committed
item: use the empty string for "no units"
1 parent 086d688 commit ee87869

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

sizes/output.go

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -384,42 +384,42 @@ func (s HistorySize) Contents() tableContents {
384384
"Overall repository size",
385385
S(
386386
"Commits",
387-
I("Count", nil, s.UniqueCommitCount, metric, " ", 500e3),
387+
I("Count", nil, s.UniqueCommitCount, metric, "", 500e3),
388388
I("Total size", nil, s.UniqueCommitSize, binary, "B", 250e6),
389389
),
390390

391391
S(
392392
"Trees",
393-
I("Count", nil, s.UniqueTreeCount, metric, " ", 1.5e6),
393+
I("Count", nil, s.UniqueTreeCount, metric, "", 1.5e6),
394394
I("Total size", nil, s.UniqueTreeSize, binary, "B", 2e9),
395-
I("Total tree entries", nil, s.UniqueTreeEntries, metric, " ", 50e6),
395+
I("Total tree entries", nil, s.UniqueTreeEntries, metric, "", 50e6),
396396
),
397397

398398
S(
399399
"Blobs",
400-
I("Count", nil, s.UniqueBlobCount, metric, " ", 1.5e6),
400+
I("Count", nil, s.UniqueBlobCount, metric, "", 1.5e6),
401401
I("Total size", nil, s.UniqueBlobSize, binary, "B", 10e9),
402402
),
403403

404404
S(
405405
"Annotated tags",
406-
I("Count", nil, s.UniqueTagCount, metric, " ", 25e3),
406+
I("Count", nil, s.UniqueTagCount, metric, "", 25e3),
407407
),
408408

409409
S(
410410
"References",
411-
I("Count", nil, s.ReferenceCount, metric, " ", 25e3),
411+
I("Count", nil, s.ReferenceCount, metric, "", 25e3),
412412
),
413413
),
414414

415415
S("Biggest objects",
416416
S("Commits",
417417
I("Maximum size", s.MaxCommitSizeCommit, s.MaxCommitSize, binary, "B", 50e3),
418-
I("Maximum parents", s.MaxParentCountCommit, s.MaxParentCount, metric, " ", 10),
418+
I("Maximum parents", s.MaxParentCountCommit, s.MaxParentCount, metric, "", 10),
419419
),
420420

421421
S("Trees",
422-
I("Maximum entries", s.MaxTreeEntriesTree, s.MaxTreeEntries, metric, " ", 1000),
422+
I("Maximum entries", s.MaxTreeEntriesTree, s.MaxTreeEntries, metric, "", 1000),
423423
),
424424

425425
S("Blobs",
@@ -428,21 +428,21 @@ func (s HistorySize) Contents() tableContents {
428428
),
429429

430430
S("History structure",
431-
I("Maximum history depth", nil, s.MaxHistoryDepth, metric, " ", 500e3),
432-
I("Maximum tag depth", s.MaxTagDepthTag, s.MaxTagDepth, metric, " ", 1.001),
431+
I("Maximum history depth", nil, s.MaxHistoryDepth, metric, "", 500e3),
432+
I("Maximum tag depth", s.MaxTagDepthTag, s.MaxTagDepth, metric, "", 1.001),
433433
),
434434

435435
S("Biggest checkouts",
436-
I("Number of directories", s.MaxExpandedTreeCountTree, s.MaxExpandedTreeCount, metric, " ", 2000),
437-
I("Maximum path depth", s.MaxPathDepthTree, s.MaxPathDepth, metric, " ", 10),
436+
I("Number of directories", s.MaxExpandedTreeCountTree, s.MaxExpandedTreeCount, metric, "", 2000),
437+
I("Maximum path depth", s.MaxPathDepthTree, s.MaxPathDepth, metric, "", 10),
438438
I("Maximum path length", s.MaxPathLengthTree, s.MaxPathLength, binary, "B", 100),
439439

440-
I("Number of files", s.MaxExpandedBlobCountTree, s.MaxExpandedBlobCount, metric, " ", 50e3),
440+
I("Number of files", s.MaxExpandedBlobCountTree, s.MaxExpandedBlobCount, metric, "", 50e3),
441441
I("Total size of files", s.MaxExpandedBlobSizeTree, s.MaxExpandedBlobSize, binary, "B", 1e9),
442442

443-
I("Number of symlinks", s.MaxExpandedLinkCountTree, s.MaxExpandedLinkCount, metric, " ", 25e3),
443+
I("Number of symlinks", s.MaxExpandedLinkCountTree, s.MaxExpandedLinkCount, metric, "", 25e3),
444444

445-
I("Number of submodules", s.MaxExpandedSubmoduleCountTree, s.MaxExpandedSubmoduleCount, metric, " ", 100),
445+
I("Number of submodules", s.MaxExpandedSubmoduleCountTree, s.MaxExpandedSubmoduleCount, metric, "", 100),
446446
),
447447
)
448448
}

0 commit comments

Comments
 (0)