From fadef949ff0420e3f1d112c5afe8b2b7c251a390 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 27 Jan 2016 22:23:56 +0100 Subject: [PATCH] Node: Fix display of percentage in Node.js frames export. --- src/node/extend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/extend.js b/src/node/extend.js index befbafb3..f7101795 100644 --- a/src/node/extend.js +++ b/src/node/extend.js @@ -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