1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 16:24:02 +00:00

when the progress string is showing info for selected, the percent value should be for the selected amount

This commit is contained in:
Mitchell Livingston 2008-04-08 03:32:07 +00:00
parent 4a146b75c1
commit f1d61349e4

View file

@ -973,14 +973,21 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
if (![self allDownloaded])
{
float progress;
if ([self folder] && [fDefaults boolForKey: @"DisplayStatusProgressSelected"])
{
string = [NSString stringWithFormat: NSLocalizedString(@"%@ of %@ selected", "Torrent -> progress string"),
[NSString stringForFileSize: [self haveTotal]], [NSString stringForFileSize: [self totalSizeSelected]]];
progress = 100.0 * [self progressDone];
}
else
{
string = [NSString stringWithFormat: NSLocalizedString(@"%@ of %@", "Torrent -> progress string"),
[NSString stringForFileSize: [self haveTotal]], [NSString stringForFileSize: [self size]]];
progress = 100.0 * [self progress];
}
string = [NSString localizedStringWithFormat: @"%@ (%.2f%%)", string, 100.0 * [self progress]];
string = [NSString localizedStringWithFormat: @"%@ (%.2f%%)", string, progress];
}
else
{