Skip to content

Commit

Permalink
fix bug of sorting by peer download/upload speed
Browse files Browse the repository at this point in the history
  • Loading branch information
mayswind committed Aug 20, 2019
1 parent db5237c commit 26ecb10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/services/aria2TaskService.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@

for (var i = 0; i < peers.length; i++) {
var peer = peers[i];
var upstreamToSpeed = peer.uploadSpeed;
var downstreamFromSpeed = peer.downloadSpeed;
var upstreamToSpeed = parseInt(peer.uploadSpeed);
var downstreamFromSpeed = parseInt(peer.downloadSpeed);
var completedPieces = getPieceStatus(peer.bitfield, task.numPieces);
var completedPieceCount = ariaNgCommonService.countArray(completedPieces, true);

Expand Down

0 comments on commit 26ecb10

Please sign in to comment.