Browse Source

Change fs.df return type

Ben Hsieh 8 years ago
parent
commit
dac901f160
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/ios/RNFetchBlobFS.m

+ 2
- 2
src/ios/RNFetchBlobFS.m View File

738
         totalSpace = [fileSystemSizeInBytes unsignedLongLongValue];
738
         totalSpace = [fileSystemSizeInBytes unsignedLongLongValue];
739
         totalFreeSpace = [freeFileSystemSizeInBytes unsignedLongLongValue];
739
         totalFreeSpace = [freeFileSystemSizeInBytes unsignedLongLongValue];
740
         callback(@[[NSNull null], @{
740
         callback(@[[NSNull null], @{
741
-                  @"free" : [NSNumber numberWithInt:totalFreeSpace],
742
-                  @"total" : [NSNumber numberWithInt:totalSpace]
741
+                  @"free" : [NSString stringWithFormat:@"%d", totalFreeSpace],
742
+                  @"total" : [NSString stringWithFormat:@"%d", totalSpace]
743
                 }]);
743
                 }]);
744
     } else {
744
     } else {
745
         callback(@[@"failed to get storage usage."]);
745
         callback(@[@"failed to get storage usage."]);