Merge pull request #352 from jparise/getSize-return-type

-getSize now returns an `unsigned long long`.
This commit is contained in:
Olivier Poitrey 2013-03-27 15:53:23 -07:00
commit 1655803bc7
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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)
{