aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPStringAdditions.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-05-18 20:03:06 +0000
committerstuconnolly <stuart02@gmail.com>2010-05-18 20:03:06 +0000
commit17cd8e717d853946813deda9cb160832b445dfdd (patch)
tree087eba4001d7e1a1f0584b7aea33031f516f8bb3 /Source/SPStringAdditions.m
parentd62f41c9fd22c868d3754917cde5a6d08624f0de (diff)
downloadsequelpro-17cd8e717d853946813deda9cb160832b445dfdd.tar.gz
sequelpro-17cd8e717d853946813deda9cb160832b445dfdd.tar.bz2
sequelpro-17cd8e717d853946813deda9cb160832b445dfdd.zip
Change filesize units to base 2 rather than base 10. Fixes issue #690. Patch provided by Max Lohrmann, thanks Max!.
Diffstat (limited to 'Source/SPStringAdditions.m')
-rw-r--r--Source/SPStringAdditions.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/SPStringAdditions.m b/Source/SPStringAdditions.m
index 09d80b9a..c36e55c1 100644
--- a/Source/SPStringAdditions.m
+++ b/Source/SPStringAdditions.m
@@ -54,7 +54,7 @@
size = (size / 1024);
if (size < 1023) {
- [numberFormatter setFormat:@"#,##0.0 KB"];
+ [numberFormatter setFormat:@"#,##0.0 KiB"];
return [numberFormatter stringFromNumber:[NSNumber numberWithDouble:size]];
}
@@ -62,7 +62,7 @@
size = (size / 1024);
if (size < 1023) {
- [numberFormatter setFormat:@"#,##0.0 MB"];
+ [numberFormatter setFormat:@"#,##0.0 MiB"];
return [numberFormatter stringFromNumber:[NSNumber numberWithDouble:size]];
}
@@ -70,14 +70,14 @@
size = (size / 1024);
if (size < 1023) {
- [numberFormatter setFormat:@"#,##0.0 GB"];
+ [numberFormatter setFormat:@"#,##0.0 GiB"];
return [numberFormatter stringFromNumber:[NSNumber numberWithDouble:size]];
}
size = (size / 1024);
- [numberFormatter setFormat:@"#,##0.0 TB"];
+ [numberFormatter setFormat:@"#,##0.0 TiB"];
return [numberFormatter stringFromNumber:[NSNumber numberWithDouble:size]];
}