Changeset 5679
- Timestamp:
- Apr 24, 2008, 6:42:45 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Torrent.m
r5678 r5679 773 773 - (NSArray *) allTrackers: (BOOL) separators 774 774 { 775 NSMutableArray * allTrackers = [NSMutableArray array]; 775 int count = fInfo->trackerCount; 776 NSMutableArray * allTrackers = [NSMutableArray arrayWithCapacity: count + fInfo->trackers[count-1].tier + 1]; 776 777 777 778 int i, tier = -1; 778 for (i = 0; i < fInfo->trackerCount; i++)779 for (i = 0; i < count; i++) 779 780 { 780 781 if (tier != fInfo->trackers[i].tier) 781 [allTrackers addObject: [NSNumber numberWithInt: i]]; 782 { 783 tier = fInfo->trackers[i].tier; 784 [allTrackers addObject: [NSNumber numberWithInt: tier]]; 785 } 782 786 783 787 [allTrackers addObject: [NSString stringWithUTF8String: fInfo->trackers[i].announce]];
Note: See TracChangeset
for help on using the changeset viewer.