Browse Source

Fix IOS df overflow issue #302

Ben Hsieh 7 years ago
parent
commit
1f151761fa
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      ios/RNFetchBlobFS.m

+ 2
- 2
ios/RNFetchBlobFS.m View File

770
         totalSpace = [fileSystemSizeInBytes unsignedLongLongValue];
770
         totalSpace = [fileSystemSizeInBytes unsignedLongLongValue];
771
         totalFreeSpace = [freeFileSystemSizeInBytes unsignedLongLongValue];
771
         totalFreeSpace = [freeFileSystemSizeInBytes unsignedLongLongValue];
772
         callback(@[[NSNull null], @{
772
         callback(@[[NSNull null], @{
773
-                  @"free" : [NSString stringWithFormat:@"%ld", totalFreeSpace],
774
-                  @"total" : [NSString stringWithFormat:@"%ld", totalSpace]
773
+                  @"free" : [NSNumber numberWithUnsignedLongLong: totalFreeSpace],
774
+                  @"total" : [NSNumber numberWithUnsignedLongLong: totalSpace],
775
                 }]);
775
                 }]);
776
     } else {
776
     } else {
777
         callback(@[@"failed to get storage usage."]);
777
         callback(@[@"failed to get storage usage."]);