1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-03 21:12:05 +00:00

fix marking the eta of torrents with peers as unavailable

This commit is contained in:
Mitchell Livingston 2008-04-07 03:01:57 +00:00
parent 317960dd90
commit 2a8b6f8b1f
2 changed files with 2 additions and 2 deletions

View file

@ -659,7 +659,7 @@ tr_torrentStat( tr_torrent * tor )
tr_bitfieldFree( availablePieces );
}
if( s->desiredAvailable != s->leftUntilDone )
if( s->desiredSize > s->desiredAvailable )
s->eta = TR_ETA_NOT_AVAIL;
else if( s->rateDownload < 0.1 )
s->eta = TR_ETA_UNKNOWN;

View file

@ -1841,7 +1841,7 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
return NSLocalizedString(@"full download not available", "Torrent -> eta string");
default:
return [NSString stringWithFormat: NSLocalizedString(@"%@ remaining", "Torrent -> eta string"),
[NSString timeString: eta showSeconds: YES maxDigits: 2]];
[NSString timeString: eta showSeconds: YES maxDigits: 2]];
}
}