]> granicus.if.org Git - transmission/commitdiff
display the number of webseeds that we're downloading from in the main window
authorMitchell Livingston <livings124@transmissionbt.com>
Tue, 10 Jun 2008 02:40:40 +0000 (02:40 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Tue, 10 Jun 2008 02:40:40 +0000 (02:40 +0000)
macosx/Torrent.m

index 5324673503943b63b36dd7765adaf9f71c9a42d4..37eb4c1992facda2428e178377ca542836d3905e 100644 (file)
@@ -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;