fix the warning for remaining size coming up when it shouldn't

This commit is contained in:
Mitchell Livingston 2007-06-30 20:36:02 +00:00
parent bacc2dc445
commit e20d8f6e3e
1 changed files with 1 additions and 1 deletions

View File

@ -822,7 +822,7 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
objectAtIndex: 0];
NSDictionary * fsAttributes = [[NSFileManager defaultManager] fileSystemAttributesAtPath: [self downloadFolder]];
uint64_t remainingSpace = [[fsAttributes objectForKey: NSFileSystemFreeSize] unsignedLongLongValue],
torrentRemaining = [self size] - (uint64_t)[self downloadedValid];
torrentRemaining = fStat->left;
if (volumeName && remainingSpace <= torrentRemaining)
{