Merge pull request #352 from jparise/getSize-return-type
-getSize now returns an `unsigned long long`.
This commit is contained in:
commit
1655803bc7
|
@ -134,7 +134,7 @@ typedef enum SDImageCacheType SDImageCacheType;
|
|||
/**
|
||||
* Get the size used by the disk cache
|
||||
*/
|
||||
- (int)getSize;
|
||||
- (unsigned long long)getSize;
|
||||
|
||||
/**
|
||||
* Get the number of images in the disk cache
|
||||
|
|
|
@ -284,9 +284,9 @@ static const NSInteger kDefaultCacheMaxCacheAge = 60 * 60 * 24 * 7; // 1 week
|
|||
});
|
||||
}
|
||||
|
||||
-(int)getSize
|
||||
-(unsigned long long)getSize
|
||||
{
|
||||
int size = 0;
|
||||
unsigned long long size = 0;
|
||||
NSDirectoryEnumerator *fileEnumerator = [[NSFileManager defaultManager] enumeratorAtPath:self.diskCachePath];
|
||||
for (NSString *fileName in fileEnumerator)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue