Преглед на файлове

Fix IOS fs.df overflow problem #276

Ben Hsieh преди 8 години
родител
ревизия
6b360d6d2a
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2
    2
      ios/RNFetchBlobFS.m

+ 2
- 2
ios/RNFetchBlobFS.m Целия файл

760
         totalSpace = [fileSystemSizeInBytes unsignedLongLongValue];
760
         totalSpace = [fileSystemSizeInBytes unsignedLongLongValue];
761
         totalFreeSpace = [freeFileSystemSizeInBytes unsignedLongLongValue];
761
         totalFreeSpace = [freeFileSystemSizeInBytes unsignedLongLongValue];
762
         callback(@[[NSNull null], @{
762
         callback(@[[NSNull null], @{
763
-                  @"free" : [NSString stringWithFormat:@"%d", totalFreeSpace],
764
-                  @"total" : [NSString stringWithFormat:@"%d", totalSpace]
763
+                  @"free" : [NSString stringWithFormat:@"%ld", totalFreeSpace],
764
+                  @"total" : [NSString stringWithFormat:@"%ld", totalSpace]
765
                 }]);
765
                 }]);
766
     } else {
766
     } else {
767
         callback(@[@"failed to get storage usage."]);
767
         callback(@[@"failed to get storage usage."]);