瀏覽代碼

UIDevice: cosmetics

Felix Paul Kühne 10 年之前
父節點
當前提交
f8232c64db
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Sources/UIDevice+VLC.m

+ 3 - 3
Sources/UIDevice+VLC.m

@@ -56,9 +56,9 @@
     if (!error) {
         totalSpace = [dictionary objectForKey:NSFileSystemSize];
         totalFreeSpace = [dictionary objectForKey:NSFileSystemFreeSize];
-        NSString *totalSize = [NSByteCountFormatter stringFromByteCount:[totalSpace integerValue] countStyle:NSByteCountFormatterCountStyleFile];
-        NSString *totalFreeSize = [NSByteCountFormatter stringFromByteCount:[totalFreeSpace integerValue] countStyle:NSByteCountFormatterCountStyleFile];
-        APLog(@"Memory Capacity of %@ MiB with %@ MiB Free memory available.", totalSize, totalFreeSize);
+        NSString *totalSize = [NSByteCountFormatter stringFromByteCount:[totalSpace longLongValue] countStyle:NSByteCountFormatterCountStyleFile];
+        NSString *totalFreeSize = [NSByteCountFormatter stringFromByteCount:[totalFreeSpace longLongValue] countStyle:NSByteCountFormatterCountStyleFile];
+        APLog(@"Memory Capacity of %@ with %@ Free memory available.", totalSize, totalFreeSize);
     } else
         APLog(@"Error Obtaining System Memory Info: Domain = %@, Code = %li", [error domain], [error code]);