fix bug of sorting by peer download/upload speed
This commit is contained in:
parent
db5237cf05
commit
26ecb10611
|
@ -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);
|
||||
|
||||
|
|
Reference in a new issue