From 92262f1ef17216456b184979edd8251f726a20ad Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Sun, 22 Jan 2017 12:59:47 +0100 Subject: [PATCH] MacGui: lower the minimum disk space to ~2GB for now. --- macosx/HBQueueController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macosx/HBQueueController.m b/macosx/HBQueueController.m index ddc904f9c..99c7210c6 100644 --- a/macosx/HBQueueController.m +++ b/macosx/HBQueueController.m @@ -539,13 +539,13 @@ #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; -- 2.40.0