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:
parent
bacc2dc445
commit
e20d8f6e3e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue