Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit 1f15176

Browse files
wkh237bcpclone
authored andcommitted
Fix IOS df overflow issue #302
1 parent cf31334 commit 1f15176

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios/RNFetchBlobFS.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -770,8 +770,8 @@ +(void) df:(RCTResponseSenderBlock)callback
770770
totalSpace = [fileSystemSizeInBytes unsignedLongLongValue];
771771
totalFreeSpace = [freeFileSystemSizeInBytes unsignedLongLongValue];
772772
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],
775775
}]);
776776
} else {
777777
callback(@[@"failed to get storage usage."]);

0 commit comments

Comments
 (0)