Math.floor() percentage

This commit is contained in:
Juan Cruz Viotti 2015-01-29 14:05:10 -04:00
parent 2b992ec233
commit 35633f3612

View File

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