1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-12 15:14:12 +00:00

#2621 Percentage of retrieved metadata was between 0 and 1, not 0 and 100

This commit is contained in:
Mitchell Livingston 2009-11-28 17:04:03 +00:00
parent 332257d392
commit 9ceb3c805d

View file

@ -919,7 +919,7 @@ int trashDataFile(const char * filename)
{
NSString * progressString = fStat->metadataPercentComplete > 0.0
? [NSString localizedStringWithFormat: NSLocalizedString(@"%.2f%% of torrent metadata retrieved",
"Torrent -> progress string"), fStat->metadataPercentComplete]
"Torrent -> progress string"), 100.0 * fStat->metadataPercentComplete]
: NSLocalizedString(@"torrent metadata needed", "Torrent -> progress string");
return [NSString stringWithFormat: @"%@ - %@", NSLocalizedString(@"Magnetized transfer", "Torrent -> progress string"),