diff options
author | CGQAQ <m.jason.liu@outlook.com> | 2021-05-24 15:55:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-24 16:55:44 +0900 |
commit | 428bc6849f36ea31f32a42cb8acf64a5902659bf (patch) | |
tree | 5d64c38cb50c4ecba5ed1f1e411a29fff9138cea | |
parent | af1546391c4a561eb26ccf9cd244b05aed9b5bfc (diff) |
fix(cli/upgrade): modify download size paddings (#10639)
-rw-r--r-- | cli/tools/upgrade.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tools/upgrade.rs b/cli/tools/upgrade.rs index 7fadd59b0..75e84b996 100644 --- a/cli/tools/upgrade.rs +++ b/cli/tools/upgrade.rs @@ -184,7 +184,7 @@ async fn download_package( print!("\u{001b}[1G\u{001b}[2K"); } print!( - "{:0>4.1} MiB / {:.1} MiB ({:0>5.1}%)", + "{:>4.1} MiB / {:.1} MiB ({:^5.1}%)", current_size / MEBIBYTE, total_size / MEBIBYTE, (current_size / total_size) * 100.0, |