1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00

fix(cli/upgrade): modify download size paddings (#10639)

This commit is contained in:
CGQAQ 2021-05-24 15:55:44 +08:00 committed by GitHub
parent af1546391c
commit 428bc6849f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,