summaryrefslogtreecommitdiff
path: root/ybd/cache.py
diff options
context:
space:
mode:
authorPaul Sherwood <paul.sherwood@codethink.co.uk>2016-03-09 01:19:29 +0000
committerPaul Sherwood <paul.sherwood@codethink.co.uk>2016-03-09 01:19:29 +0000
commit0d5e8f5a426e5ed00aaf79c33cff30a7638106f3 (patch)
tree14e1d675a31b5013459f8bca32c4f8e7cfd058e9 /ybd/cache.py
parentb3751ffd8808ad336d18ff6d8f0bd204da26d4e0 (diff)
parent2030509ff3c2e1e54bed610e10b314ed789cc25b (diff)
downloadybd-0d5e8f5a426e5ed00aaf79c33cff30a7638106f3.tar.gz
Merge branch 'master' of github.com:devcurmudgeon/ybd
Diffstat (limited to 'ybd/cache.py')
-rw-r--r--ybd/cache.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ybd/cache.py b/ybd/cache.py
index 0c9198a..c209957 100644
--- a/ybd/cache.py
+++ b/ybd/cache.py
@@ -292,7 +292,7 @@ def cull(artifact_dir):
for artifact in artifacts:
stat = os.statvfs(artifact_dir)
free = stat.f_frsize * stat.f_bavail / 1000000000
- if free >= app.config.get('min-gigabytes', 10):
+ if free >= app.config.get('min-gigabytes', 0):
app.log('SETUP', '%sGB is enough free space' % free)
if deleted > 0:
app.log('SETUP', 'Culled %s items in' % deleted,
@@ -318,9 +318,9 @@ def cull(artifact_dir):
stat = os.statvfs(artifact_dir)
free = stat.f_frsize * stat.f_bavail / 1000000000
- if free < app.config.get('min-gigabytes', 10):
+ if free < app.config.get('min-gigabytes', 0):
app.exit('SETUP', 'ERROR: %sGB is less than min-gigabytes:' % free,
- app.config.get('min-gigabytes', 10))
+ app.config.get('min-gigabytes', 0))
def check(artifact):