Changeset 12727
- Timestamp:
- Aug 24, 2011, 7:20:22 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/javascript/torrent.js
r12716 r12727 391 391 Torrent.compareByRatio = function(ta, tb) 392 392 { 393 var a = Math.ratio(ta.getUploadedEver(), ta.getDownloadedEver()); 394 var b = Math.ratio(tb.getUploadedEver(), tb.getDownloadedEver()); 395 return (a - b) || Torrent.compareByState(ta, tb); 393 var a = ta.getUploadRatio(); 394 var b = tb.getUploadRatio(); 395 if (a < b) return 1; 396 if (a > b) return -1; 397 return Torrent.compareByState(ta, tb); 396 398 }; 397 399 Torrent.compareByProgress = function(ta, tb)
Note: See TracChangeset
for help on using the changeset viewer.