Pārlūkot izejas kodu

Change fs.df return type

Ben Hsieh 8 gadus atpakaļ
vecāks
revīzija
dac901f160
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2
    2
      src/ios/RNFetchBlobFS.m

+ 2
- 2
src/ios/RNFetchBlobFS.m Parādīt failu

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