fix the warning for remaining size coming up when it shouldn't
This commit is contained in:
parent
bacc2dc445
commit
e20d8f6e3e
|
@ -822,7 +822,7 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
||||||
objectAtIndex: 0];
|
objectAtIndex: 0];
|
||||||
NSDictionary * fsAttributes = [[NSFileManager defaultManager] fileSystemAttributesAtPath: [self downloadFolder]];
|
NSDictionary * fsAttributes = [[NSFileManager defaultManager] fileSystemAttributesAtPath: [self downloadFolder]];
|
||||||
uint64_t remainingSpace = [[fsAttributes objectForKey: NSFileSystemFreeSize] unsignedLongLongValue],
|
uint64_t remainingSpace = [[fsAttributes objectForKey: NSFileSystemFreeSize] unsignedLongLongValue],
|
||||||
torrentRemaining = [self size] - (uint64_t)[self downloadedValid];
|
torrentRemaining = fStat->left;
|
||||||
|
|
||||||
if (volumeName && remainingSpace <= torrentRemaining)
|
if (volumeName && remainingSpace <= torrentRemaining)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue