mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +00:00
better remaining space check
This commit is contained in:
parent
3a2df14d52
commit
c728e3cef4
1 changed files with 1 additions and 1 deletions
|
@ -485,7 +485,7 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
|
|||
NSDictionary * systemAttributes = [[NSFileManager defaultManager] fileSystemAttributesAtPath: [self downloadFolder]];
|
||||
uint64_t remainingSpace = [[systemAttributes objectForKey: NSFileSystemFreeSize] unsignedLongLongValue];
|
||||
|
||||
if (remainingSpace - [self sizeLeft] <= [self size])
|
||||
if (remainingSpace <= [self sizeLeft])
|
||||
{
|
||||
NSAlert * alert = [[NSAlert alloc] init];
|
||||
[alert setMessageText: [NSString stringWithFormat:
|
||||
|
|
Loading…
Reference in a new issue