Browse Source

Fix IOS df overflow issue #302

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

+ 2
- 2
ios/RNFetchBlobFS.m View File

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