diff options
Diffstat (limited to 'code')
-rw-r--r-- | code/directory.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/code/directory.rb b/code/directory.rb index 8e8f2269..5ced4fae 100644 --- a/code/directory.rb +++ b/code/directory.rb @@ -110,10 +110,10 @@ class Directory if @free_space then return @free_space end @free_space = 0 - out = `df -PB 1 #{~path}` + out = `df -Pk #{~path}` out = out[out.index("\n")+1, out.index("\n", out.index("\n"))] if out =~ /^[^\s]+ \s+ \d+ \s+ \d+ \s+ (\d+) \s+/x - @free_space = $1.to_i + @free_space = $1.to_i * 1024 end @free_space end |