]> granicus.if.org Git - handbrake/commitdiff
MacGui: lower the minimum disk space to ~2GB for now.
authorDamiano Galassi <damiog@gmail.com>
Sun, 22 Jan 2017 11:59:47 +0000 (12:59 +0100)
committerDamiano Galassi <damiog@gmail.com>
Sun, 22 Jan 2017 11:59:47 +0000 (12:59 +0100)
macosx/HBQueueController.m

index ddc904f9c03ce44f85f992807cb88ec577f75032..99c7210c6368effc2ab816bed0394c686abe7447 100644 (file)
 #pragma mark -
 #pragma mark Queue Job Processing
 
-#define ALMOST_5GB 5000000000
+#define MIN_DISK_SPACE 2000000000
 
 - (BOOL)_isDiskSpaceLowAtURL:(NSURL *)url
 {
     NSDictionary *dict = [[NSFileManager defaultManager] attributesOfFileSystemForPath:url.URLByDeletingLastPathComponent.path error:NULL];
     long long freeSpace = [dict[NSFileSystemFreeSize] longLongValue];
-    if (freeSpace < ALMOST_5GB) {
+    if (freeSpace < MIN_DISK_SPACE) {
         return YES;
     }
     return NO;