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:
parent
457a47f19f
commit
28879d4174
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user