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) { if (box) {
actual += box.length; actual += box.length;
var progressValue = (actual / estimate * 100); var progressValue = (actual / estimate * 100);
progressValue = Math.min(progressValue, 100);
updateProgress(progressValue); updateProgress(progressValue);
return void sendChunk(box, function (e) { return void sendChunk(box, function (e) {

Loading…
Cancel
Save