mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 13:06:56 +08:00
workaround slow command line
This commit is contained in:
@ -7,7 +7,9 @@ class DiskSpace
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.uploads_free_bytes
|
def self.uploads_free_bytes
|
||||||
free(uploads_path)
|
# temporary (on our internal setup its just too slow)
|
||||||
|
Upload.sum(:filesize).to_i
|
||||||
|
# free(uploads_path)
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.backups_used_bytes
|
def self.backups_used_bytes
|
||||||
|
Reference in New Issue
Block a user