mirror of
https://github.com/transmission/transmission
synced 2025-03-05 02:58:33 +00:00
mac build compiles once again
This commit is contained in:
parent
459bea37f9
commit
5b7547a0e1
3 changed files with 4 additions and 25 deletions
|
@ -1476,8 +1476,6 @@ typedef enum
|
|||
else;
|
||||
}
|
||||
|
||||
#warning reload table when necessary?
|
||||
#warning fix!
|
||||
- (void) updateInfoTracker
|
||||
{
|
||||
if ([fTorrents count] != 1)
|
||||
|
@ -1498,10 +1496,11 @@ typedef enum
|
|||
return;
|
||||
Torrent * torrent = [fTorrents objectAtIndex: 0];
|
||||
|
||||
NSInteger seeders = [torrent seeders], leechers = [torrent leechers], completed = [torrent completedFromTracker];
|
||||
#warning remove corresponding fields
|
||||
/*NSInteger seeders = [torrent seeders], leechers = [torrent leechers], completed = [torrent completedFromTracker];
|
||||
[fSeedersField setStringValue: seeders >= 0 ? [NSString stringWithFormat: @"%d", seeders] : @""];
|
||||
[fLeechersField setStringValue: leechers >= 0 ? [NSString stringWithFormat: @"%d", leechers] : @""];
|
||||
[fCompletedFromTrackerField setStringValue: completed >= 0 ? [NSString stringWithFormat: @"%d", completed] : @""];
|
||||
[fCompletedFromTrackerField setStringValue: completed >= 0 ? [NSString stringWithFormat: @"%d", completed] : @""];*/
|
||||
|
||||
BOOL active = [torrent isActive];
|
||||
|
||||
|
|
|
@ -188,11 +188,6 @@
|
|||
- (NSString *) remainingTimeString;
|
||||
|
||||
- (NSString *) stateString;
|
||||
|
||||
- (NSInteger) seeders;
|
||||
- (NSInteger) leechers;
|
||||
- (NSInteger) completedFromTracker;
|
||||
|
||||
- (NSInteger) totalPeersConnected;
|
||||
- (NSInteger) totalPeersTracker;
|
||||
- (NSInteger) totalPeersIncoming;
|
||||
|
|
|
@ -745,7 +745,7 @@ int trashDataFile(const char * filename)
|
|||
int count;
|
||||
tr_tracker_stat * stats = tr_torrentTrackers(fHandle, &count);
|
||||
|
||||
NSMutableArray * trackers = [NSMutableArray arrayWithCapacity: count + stats[count-1].tier + 1];
|
||||
NSMutableArray * trackers = [NSMutableArray arrayWithCapacity: count + stats[count-1].tier];
|
||||
|
||||
int prevTier = -1;
|
||||
for (int i=0; i < count; ++i)
|
||||
|
@ -1207,21 +1207,6 @@ int trashDataFile(const char * filename)
|
|||
}
|
||||
}
|
||||
|
||||
- (NSInteger) seeders
|
||||
{
|
||||
return fStat->seeders;
|
||||
}
|
||||
|
||||
- (NSInteger) leechers
|
||||
{
|
||||
return fStat->leechers;
|
||||
}
|
||||
|
||||
- (NSInteger) completedFromTracker
|
||||
{
|
||||
return fStat->timesCompleted;
|
||||
}
|
||||
|
||||
- (NSInteger) totalPeersConnected
|
||||
{
|
||||
return fStat->peersConnected;
|
||||
|
|
Loading…
Add table
Reference in a new issue