1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-03 13:35:36 +00:00

(trunk web) sync the web client's code with r10197

This commit is contained in:
Charles Kerr 2010-02-15 23:52:41 +00:00
parent 52172c80d6
commit b592efc5b9

View file

@ -169,7 +169,7 @@ Torrent.prototype =
buildTrackerStats: function(trackerStats) {
result = [];
for( var i=0, tracker; tracker=trackerStats[i]; ++i ) {
tier = result[tracker.tier - 1] || [];
tier = result[tracker.tier] || [];
tier[tier.length] = {
'host': tracker.host,
'announce': tracker.announce,
@ -189,7 +189,7 @@ Torrent.prototype =
'leecherCount': tracker.leecherCount,
'downloadCount': tracker.downloadCount
};
result[tracker.tier - 1] = tier;
result[tracker.tier] = tier;
}
return result;
},