Node: Fix display of percentage in Node.js frames export.

This commit is contained in:
Jürg Lehni 2016-01-27 22:23:56 +01:00
parent 0455d39e33
commit fadef949ff

View file

@ -116,7 +116,7 @@ module.exports = function(paper) {
options.onProgress({
count: count,
amount: options.amount,
percentage: Math.round(count / options.amount
percentage: Math.round((count + 1) / options.amount
* 10000) / 100,
time: then - startTime,
delta: then - lastTime