better remaining space check

This commit is contained in:
Mitchell Livingston 2007-10-07 03:30:29 +00:00
parent 3a2df14d52
commit c728e3cef4
1 changed files with 1 additions and 1 deletions

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: