Fix file progress value going over 100%
This commit is contained in:
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…
x
Reference in New Issue
Block a user