undefined bug fix

This commit is contained in:
Drew Ansbacher
2021-09-08 16:14:44 +03:00
committed by Matt Hill
parent d9a3d4a973
commit 817c6e3b24
3 changed files with 4 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ export class PackageLoadingService {
validateWeight * validated +
unpackWeight * unpacked)
const denominator = Math.floor(loadData.size * (downloadWeight + validateWeight + unpackWeight))
const denominator = Math.floor(size * (downloadWeight + validateWeight + unpackWeight))
return {
totalProgress: Math.round(100 * numerator / denominator),