1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 00:34:04 +00:00

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

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