Fix file progress value going over 100%

pull/1/head
ClemDee 6 years ago
parent 438ff211e1
commit b49c39b895

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

Loading…
Cancel
Save