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

View file

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

View file

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