This commit is contained in:
Bret Comnes
2020-02-17 21:19:33 -07:00
parent 3024afb807
commit 2ac7b56408
8 changed files with 201 additions and 164 deletions

View File

@@ -49,7 +49,7 @@ function statsHandler (opts = {}) {
}
function logProgress (stats) {
let logLine = `Stage ${stats.stage}: ${stats.progress * 100}%`
let logLine = `Stage ${stats.stage}: ${(stats.progress * 100).toFixed(2)}%`
if (stats.bytesWritten != null && stats.totalBytes != null) {
logLine = logLine + ` (${prettyBytes(stats.bytesWritten)} / ${prettyBytes(stats.totalBytes)})`
}