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

Commit

Permalink
Fix IOS df overflow issue #302
Browse files Browse the repository at this point in the history
  • Loading branch information
wkh237 authored and bcpclone committed Apr 25, 2017
1 parent cf31334 commit 1f15176
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/RNFetchBlobFS.m
Original file line number Diff line number Diff line change
Expand Up @@ -770,8 +770,8 @@ +(void) df:(RCTResponseSenderBlock)callback
totalSpace = [fileSystemSizeInBytes unsignedLongLongValue];
totalFreeSpace = [freeFileSystemSizeInBytes unsignedLongLongValue];
callback(@[[NSNull null], @{
@"free" : [NSString stringWithFormat:@"%ld", totalFreeSpace],
@"total" : [NSString stringWithFormat:@"%ld", totalSpace]
@"free" : [NSNumber numberWithUnsignedLongLong: totalFreeSpace],
@"total" : [NSNumber numberWithUnsignedLongLong: totalSpace],
}]);
} else {
callback(@[@"failed to get storage usage."]);
Expand Down

0 comments on commit 1f15176

Please sign in to comment.