if file size is less than 10 KB, show one decimal place

This commit is contained in:
Mitchell Livingston
2011-01-09 19:24:27 +00:00
parent 64f6b2cb5f
commit 7fc28b1019
2 changed files with 2 additions and 2 deletions

View File

@@ -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))
{