mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-23 15:32:22 +00:00
Math.floor() percentage
This commit is contained in:
parent
2b992ec233
commit
35633f3612
@ -184,7 +184,7 @@ exports.init =
|
||||
drive.writeImage params.device, params.image,
|
||||
progress: not options.quiet
|
||||
onProgress: (status) ->
|
||||
console.log("#{bar.format(status.percentage / 100)} #{status.percentage}% eta #{status.eta}s")
|
||||
console.log("#{bar.format(status.percentage / 100)} #{Math.floor(status.percentage)}% eta #{status.eta}s")
|
||||
, callback
|
||||
|
||||
], (error) ->
|
||||
|
Loading…
Reference in New Issue
Block a user