add a 'B' suffix to files under a thousand bytes

Mentioned in #49.
This commit is contained in:
Gokcehan committed 2017-01-08 19:24:28 +03:00
1 parent 7c800cc373
commit 90e3a22dc8
2 files changed
+5 -5

No files matched your search

+4 -4
View File
@@ -157,10 +157,10 @@ func TestHumanize(t *testing.T) {
i int64
exp string
}{
{0, "0"},
{9, "9"},
{99, "99"},
{999, "999"},
{0, "0B"},
{9, "9B"},
{99, "99B"},
{999, "999B"},
{1000, "1.0K"},
{1023, "1.0K"},
{1025, "1.0K"},