From e20d8f6e3ea80acb0fa7ee7aedc3135c0e2687a5 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sat, 30 Jun 2007 20:36:02 +0000 Subject: [PATCH] fix the warning for remaining size coming up when it shouldn't --- macosx/Torrent.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macosx/Torrent.m b/macosx/Torrent.m index 1520cdcf0..25cf95bc9 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -822,7 +822,7 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80 objectAtIndex: 0]; NSDictionary * fsAttributes = [[NSFileManager defaultManager] fileSystemAttributesAtPath: [self downloadFolder]]; uint64_t remainingSpace = [[fsAttributes objectForKey: NSFileSystemFreeSize] unsignedLongLongValue], - torrentRemaining = [self size] - (uint64_t)[self downloadedValid]; + torrentRemaining = fStat->left; if (volumeName && remainingSpace <= torrentRemaining) {