Fix equality check.

This commit is contained in:
Daniel Scalzi 2020-04-11 20:43:15 -04:00
parent a14ef6de43
commit 19da5f51f0
No known key found for this signature in database
GPG Key ID: D18EA3FB4B142A57

View File

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