summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2016-04-05 14:51:05 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2016-04-06 11:31:02 +0200
commit0584e85736b164d07434619622d6d06ad15fe690 (patch)
treeeb08c1c6eb4627f39dc0cd4e8db6c6b94505139c
parent261a85ced94e2f4ed7c3f01d7d0a7624032e2697 (diff)
downloadlvm2-0584e85736b164d07434619622d6d06ad15fe690.tar.gz
lvconvert: show percent with %.2
lvm2 shows percent values with 2 decimal digits elsewhere so use it consistently also for this output.
-rw-r--r--tools/lvconvert_poll.c4
-rw-r--r--tools/polldaemon.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/lvconvert_poll.c b/tools/lvconvert_poll.c
index 9b758f25b..3f3beaf03 100644
--- a/tools/lvconvert_poll.c
+++ b/tools/lvconvert_poll.c
@@ -152,10 +152,10 @@ progress_t poll_merge_progress(struct cmd_context *cmd,
}
if (parms->progress_display)
- log_print_unless_silent("%s: %s: %.1f%%", lv->name, parms->progress_title,
+ log_print_unless_silent("%s: %s: %.2f%%", lv->name, parms->progress_title,
100.0 - dm_percent_to_float(percent));
else
- log_verbose("%s: %s: %.1f%%", lv->name, parms->progress_title,
+ log_verbose("%s: %s: %.2f%%", lv->name, parms->progress_title,
100.0 - dm_percent_to_float(percent));
if (percent == DM_PERCENT_0)
diff --git a/tools/polldaemon.c b/tools/polldaemon.c
index 8f1ff90cc..71d6b3e9b 100644
--- a/tools/polldaemon.c
+++ b/tools/polldaemon.c
@@ -40,10 +40,10 @@ progress_t poll_mirror_progress(struct cmd_context *cmd,
overall_percent = copy_percent(lv);
if (parms->progress_display)
- log_print_unless_silent("%s: %s: %.1f%%", name, parms->progress_title,
+ log_print_unless_silent("%s: %s: %.2f%%", name, parms->progress_title,
dm_percent_to_float(overall_percent));
else
- log_verbose("%s: %s: %.1f%%", name, parms->progress_title,
+ log_verbose("%s: %s: %.2f%%", name, parms->progress_title,
dm_percent_to_float(overall_percent));
if (segment_percent != DM_PERCENT_100)