1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-26 16:09:27 -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 Bert Belder
parent f3d5e74d2d
commit 43417b4660
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461

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,