From 20e6a6f43deb9b78ce8d9002db82a3263c33f179 Mon Sep 17 00:00:00 2001 From: Carl Norum Date: Sat, 25 Feb 2017 20:06:04 -0800 Subject: [PATCH] Fix upload length update. --- js/ctrls/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/ctrls/main.js b/js/ctrls/main.js index d8c07a4..30eae73 100755 --- a/js/ctrls/main.js +++ b/js/ctrls/main.js @@ -451,8 +451,8 @@ function( } else if (ctx.verifyIntegrityPending !== d.verifyIntegrityPending) { ctx.verifyIntegrityPending = d.verifyIntegrityPending; } - if (ctx.uploadLength !== d.uploadength) { - ctx.uploadLength = d.uploadlength; + if (ctx.uploadLength !== d.uploadLength) { + ctx.uploadLength = d.uploadLength; ctx.fmtUploadLength = utils.fmtsize(d.uploadLength); } if (ctx.pieceLength !== d.pieceLength) { @@ -627,4 +627,4 @@ function( rpc.once('changePosition', [d.gid, -1, 'POS_CUR']); }; -}]); \ No newline at end of file +}]);