Fix equality check.
This commit is contained in:
parent
a14ef6de43
commit
19da5f51f0
@ -21,7 +21,7 @@ function assignListeners(){
|
||||
})
|
||||
tracker.on('progress', (data, acc, total) => {
|
||||
const currPercent = parseInt((acc/total) * 100)
|
||||
if (currPercent != percent) {
|
||||
if (currPercent !== percent) {
|
||||
percent = currPercent
|
||||
process.send({context: 'progress', data, value: acc, total, percent})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user