1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 16:52:39 +00:00

get compiling

This commit is contained in:
Mitchell Livingston 2007-07-16 01:05:03 +00:00
parent 82fbfb4c47
commit 769b29ce68
3 changed files with 12 additions and 12 deletions

View file

@ -432,8 +432,8 @@
else
[fConnectedPeersField setStringValue: NSLocalizedString(@"info not available", "Inspector -> Peers tab -> peers")];
[fDownloadingFromField setStringValue: active ? [NSString stringWithInt: [torrent peersUploading]] : @""];
[fUploadingToField setStringValue: active ? [NSString stringWithInt: [torrent peersDownloading]] : @""];
[fDownloadingFromField setStringValue: active ? [NSString stringWithInt: [torrent peersSendingToUs]] : @""];
[fUploadingToField setStringValue: active ? [NSString stringWithInt: [torrent peersGettingFromUs]] : @""];
if (fPeers)
[fPeers release];

View file

@ -184,8 +184,8 @@
- (int) totalPeersCache;
- (int) totalPeersPex;
- (int) peersUploading;
- (int) peersDownloading;
- (int) peersSendingToUs;
- (int) peersGettingFromUs;
- (float) downloadRate;
- (float) uploadRate;

View file

@ -384,10 +384,10 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
[statusString setString: @""];
if ([self totalPeersConnected] != 1)
[statusString appendFormat: NSLocalizedString(@"Downloading from %d of %d peers",
"Torrent -> status string"), [self peersUploading], [self totalPeersConnected]];
"Torrent -> status string"), [self peersSendingToUs], [self totalPeersConnected]];
else
[statusString appendFormat: NSLocalizedString(@"Downloading from %d of 1 peer",
"Torrent -> status string"), [self peersUploading]];
"Torrent -> status string"), [self peersSendingToUs]];
int eta = [self eta];
if (eta < 0)
@ -427,10 +427,10 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
[statusString setString: @""];
if ([self totalPeersConnected] != 1)
[statusString appendFormat: NSLocalizedString(@"Seeding to %d of %d peers", "Torrent -> status string"),
[self peersDownloading], [self totalPeersConnected]];
[self peersSendingToUs], [self totalPeersConnected]];
else
[statusString appendFormat: NSLocalizedString(@"Seeding to %d of 1 peer", "Torrent -> status string"),
[self peersDownloading]];
[self peersGettingFromUs]];
break;
@ -1209,15 +1209,15 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
}
//peers uploading to you
- (int) peersUploading
- (int) peersSendingToUs
{
return fStat->peersUploading;
return fStat->peersSendingToUs;
}
//peers downloading from you
- (int) peersDownloading
- (int) peersGettingFromUs
{
return fStat->peersDownloading;
return fStat->peersGettingFromUs;
}
- (float) downloadRate