#3878 don't show the units of a partial file size when it's the same as the full file size's units

This commit is contained in:
Mitchell Livingston
2011-01-08 05:11:28 +00:00
parent 035b67677b
commit 3abf813bbf
4 changed files with 68 additions and 45 deletions

View File

@@ -76,8 +76,7 @@
{
[fProgressBar setIndeterminate: NO];
NSString * substring = [NSString stringWithFormat: NSLocalizedString(@"%@ of %@", "Blocklist -> message"),
[NSString stringForFileSize: currentSize], [NSString stringForFileSize: expectedSize]];
NSString * substring = [NSString stringForFilePartialSize: currentSize fullSize: expectedSize];
string = [string stringByAppendingFormat: @" (%@)", substring];
[fProgressBar setDoubleValue: (double)currentSize / expectedSize];
}