Fix file progress value going over 100%

This commit is contained in:
ClemDee 2019-07-19 11:34:30 +02:00
parent 438ff211e1
commit b49c39b895

View File

@ -65,6 +65,7 @@ define([
if (box) {
actual += box.length;
var progressValue = (actual / estimate * 100);
progressValue = Math.min(progressValue, 100);
updateProgress(progressValue);
return void sendChunk(box, function (e) {