mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-12 08:41:23 -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
|
protected
|
||||||
|
|
||||||
def self.free(path)
|
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
|
end
|
||||||
|
|
||||||
def self.used(path)
|
def self.used(path)
|
||||||
|
|
Loading…
Reference in a new issue