mirror of
https://github.com/transmission/transmission
synced 2024-12-23 16:24:02 +00:00
if file size is less than 10 KB, show one decimal place
This commit is contained in:
parent
64f6b2cb5f
commit
7fc28b1019
2 changed files with 2 additions and 2 deletions
|
@ -189,7 +189,7 @@
|
|||
{
|
||||
convertedSize = size / baseFloat;
|
||||
unit = NSLocalizedString(@"KB", "File size - kilobytes");
|
||||
decimals = 0;
|
||||
decimals = convertedSize >= 10.0 ? 0 : 1;
|
||||
}
|
||||
else if (size < pow(baseInt, 3))
|
||||
{
|
||||
|
|
|
@ -1205,7 +1205,7 @@ int trashDataFile(const char * filename)
|
|||
return NSLocalizedString(@"Seeding", "Torrent -> status string");
|
||||
|
||||
default:
|
||||
NSAssert1(NO, @"Unknown activity %d for statis string", fStat->activity);
|
||||
NSAssert1(NO, @"Unknown activity %d for state string", fStat->activity);
|
||||
return nil;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue