summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2017-01-22 12:59:47 +0100
committerDamiano Galassi <[email protected]>2017-01-22 12:59:47 +0100
commit92262f1ef17216456b184979edd8251f726a20ad (patch)
tree0daf6b624e049bb3d7b3a2fbce59e093f44f062d /macosx
parent3469d0a6eaeb8ea97dd7f18e43ece96fe987c991 (diff)
MacGui: lower the minimum disk space to ~2GB for now.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/HBQueueController.m4
1 files 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;