mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
oops
This commit is contained in:
parent
b3b4d390fa
commit
aca05267cd
1 changed files with 4 additions and 4 deletions
|
@ -3,13 +3,13 @@ class DiskSpace
|
||||||
extend ActionView::Helpers::NumberHelper
|
extend ActionView::Helpers::NumberHelper
|
||||||
|
|
||||||
def self.uploads_used_bytes
|
def self.uploads_used_bytes
|
||||||
used(uploads_path)
|
# used(uploads_path)
|
||||||
|
# temporary (on our internal setup its just too slow to iterate)
|
||||||
|
Upload.sum(:filesize).to_i
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.uploads_free_bytes
|
def self.uploads_free_bytes
|
||||||
# temporary (on our internal setup its just too slow)
|
free(uploads_path)
|
||||||
Upload.sum(:filesize).to_i
|
|
||||||
# free(uploads_path)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.backups_used_bytes
|
def self.backups_used_bytes
|
||||||
|
|
Loading…
Reference in a new issue