FIX: check free space in uploads directory, not global system

This commit is contained in:
Sam 2015-01-11 06:42:41 +11:00
parent e572ad35ad
commit 7d07ad4aa4
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ class CookedPostProcessor
end
def available_disk_space
100 - `df -l . | tail -1 | tr -s ' ' | cut -d ' ' -f 5`.to_i
100 - `df -l #{Rails.root}/public/uploads | tail -1 | tr -s ' ' | cut -d ' ' -f 5`.to_i
end
def dirty?