mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Node: Fix display of percentage in Node.js frames export.
This commit is contained in:
parent
0455d39e33
commit
fadef949ff
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ module.exports = function(paper) {
|
||||||
options.onProgress({
|
options.onProgress({
|
||||||
count: count,
|
count: count,
|
||||||
amount: options.amount,
|
amount: options.amount,
|
||||||
percentage: Math.round(count / options.amount
|
percentage: Math.round((count + 1) / options.amount
|
||||||
* 10000) / 100,
|
* 10000) / 100,
|
||||||
time: then - startTime,
|
time: then - startTime,
|
||||||
delta: then - lastTime
|
delta: then - lastTime
|
||||||
|
|
Loading…
Reference in a new issue