1
0
Fork 0
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:
Mitchell Livingston 2007-10-07 03:30:29 +00:00
parent 3a2df14d52
commit c728e3cef4

View file

@ -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: