1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-12-01 08:23:49 +03:00

Fix rounding of large displayed sizes.

This commit is contained in:
Alasdair Kergon
2004-06-07 15:22:43 +00:00
parent 2ea0f30ffa
commit 30bab85be1
11 changed files with 66 additions and 72 deletions

View File

@@ -64,7 +64,7 @@ static void _print(struct cmd_context *cmd, const struct device *dev,
uint64_t size, const char *what)
{
log_print("%-*s [%15s] %s", max_len, dev_name(dev),
display_size(cmd, size / 2, SIZE_SHORT), what ? : "");
display_size(cmd, size, SIZE_SHORT), what ? : "");
}
static int _check_device(struct cmd_context *cmd, struct device *dev)