From: Mitchell Livingston Date: Tue, 10 Jun 2008 02:40:40 +0000 (+0000) Subject: display the number of webseeds that we're downloading from in the main window X-Git-Tag: 1.22~61 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11572bcf97d9dcc74febca93c385a0ccd7b1c1a1;p=transmission display the number of webseeds that we're downloading from in the main window --- diff --git a/macosx/Torrent.m b/macosx/Torrent.m index 532467350..37eb4c199 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -1034,7 +1034,7 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void * [dict setObject: [NSString stringWithUTF8String: fInfo->webseeds[i]] forKey: @"Address"]; - if (dlSpeeds[i] != -1) + if (dlSpeeds[i] != -1.0) [dict setObject: [NSNumber numberWithFloat: dlSpeeds[i]] forKey: @"DL From Rate"]; [webSeeds addObject: dict]; @@ -1149,7 +1149,7 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void * string = [NSString stringWithFormat: NSLocalizedString(@"Downloading from %d of 1 peer", "Torrent -> status string"), [self peersSendingToUs]]; - /*int webSeedCount = [self webSeedCount]; + int webSeedCount = fStat->webseedsSendingToUs; if (webSeedCount > 0) { NSString * webSeedString; @@ -1160,7 +1160,7 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void * webSeedCount]; string = [string stringByAppendingFormat: @" + %@", webSeedString]; - }*/ + } break;