diff --git a/lib/disk_space.rb b/lib/disk_space.rb index c7ee672cc0b..6ddb9365fc1 100644 --- a/lib/disk_space.rb +++ b/lib/disk_space.rb @@ -2,11 +2,7 @@ class DiskSpace def self.uploads_used_bytes - if Discourse.store.external? - Upload.sum(:filesize).to_i + OptimizedImage.sum(:filesize).to_i - else - used(uploads_path) - end + Upload.sum(:filesize).to_i + OptimizedImage.sum(:filesize).to_i end def self.uploads_free_bytes