chore: print more accurate MiB instead of Mb when downloading browsers (#28304)
Fixes https://github.com/microsoft/playwright/issues/28283
This commit is contained in:
parent
24c52d5755
commit
82f970e5c1
|
|
@ -170,5 +170,5 @@ function getBasicDownloadProgress(): OnProgressCallback {
|
||||||
|
|
||||||
function toMegabytes(bytes: number) {
|
function toMegabytes(bytes: number) {
|
||||||
const mb = bytes / 1024 / 1024;
|
const mb = bytes / 1024 / 1024;
|
||||||
return `${Math.round(mb * 10) / 10} Mb`;
|
return `${Math.round(mb * 10) / 10} MiB`;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue