From c728e3cef4f097fd3d771fe223d30806a1e66085 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sun, 7 Oct 2007 03:30:29 +0000 Subject: [PATCH] better remaining space check --- macosx/Torrent.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macosx/Torrent.m b/macosx/Torrent.m index 67f631e51..bd29427e2 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -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: