From a2ecc98986684eb1294004a0eb23f9661013f511 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sat, 22 Dec 2007 22:02:38 +0000 Subject: [PATCH] show remaining time for seeding torrents set to global stop seeding setting (with that setting on) reported by m1b --- macosx/Torrent.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/macosx/Torrent.m b/macosx/Torrent.m index def1dc3f9..8cbf1a5b5 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -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"),