mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-11 16:21:24 -05:00
FIX: Allow for large free disk space
reported via @envygeeks shift multiplication of free space out of awk and into rube awk on some systems appears to be converting stuff to floats.
This commit is contained in:
parent
7138b74110
commit
ee823305a1
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ class DiskSpace
|
|||
protected
|
||||
|
||||
def self.free(path)
|
||||
`df -Pk #{path} | awk 'NR==2 {print $4 * 1024;}'`.to_i
|
||||
`df -Pk #{path} | awk 'NR==2 {print $4;}'`.to_i * 1024
|
||||
end
|
||||
|
||||
def self.used(path)
|
||||
|
|
Loading…
Reference in a new issue