1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

Fix display alignment of zero.

This commit is contained in:
Alasdair Kergon 2002-12-05 22:42:31 +00:00
parent 457a47f19f
commit 28879d4174

View File

@ -105,6 +105,7 @@ char *display_size(uint64_t size, size_len_t sl)
{" Gigabyte", "GB"},
{" Megabyte", "MB"},
{" Kilobyte", "KB"},
{"", ""},
{" ", " "}
};
@ -114,7 +115,7 @@ char *display_size(uint64_t size, size_len_t sl)
}
if (size == 0LL)
sprintf(size_buf, "0");
sprintf(size_buf, "0%s", size_str[5][sl]);
else {
s = 0;
while (size_str[s] && size < byte)