show remaining time for seeding torrents set to global stop seeding setting (with that setting on) reported by m1b

This commit is contained in:
Mitchell Livingston 2007-12-22 22:02:38 +00:00
parent 51f52dd8d6
commit a2ecc98986
1 changed files with 2 additions and 1 deletions

View File

@ -899,7 +899,8 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
[NSString stringForRatio: [self ratio]]];
//add time when downloading
if (fStat->status == TR_STATUS_DOWNLOAD || ([self isSeeding] && fRatioSetting != NSOffState))
if (fStat->status == TR_STATUS_DOWNLOAD || ([self isSeeding]
&& (fRatioSetting == NSOnState || (fRatioSetting == NSMixedState && [fDefaults boolForKey: @"RatioCheck"]))))
{
int eta = fStat->status == TR_STATUS_DOWNLOAD ? [self eta] : [self etaRatio];
string = eta >= 0 ? [string stringByAppendingFormat: NSLocalizedString(@" - %@ remaining", "Torrent -> progress string"),