Kaynağa Gözat

Fix IOS df overflow issue #302

Ben Hsieh 7 yıl önce
ebeveyn
işleme
1f151761fa
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2
    2
      ios/RNFetchBlobFS.m

+ 2
- 2
ios/RNFetchBlobFS.m Dosyayı Görüntüle

@@ -770,8 +770,8 @@ NSMutableDictionary *fileStreams = nil;
770 770
         totalSpace = [fileSystemSizeInBytes unsignedLongLongValue];
771 771
         totalFreeSpace = [freeFileSystemSizeInBytes unsignedLongLongValue];
772 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 776
     } else {
777 777
         callback(@[@"failed to get storage usage."]);