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]);