diff --git a/views/dashboard.slim b/views/dashboard.slim index d30ab1ed..925dd1c5 100644 --- a/views/dashboard.slim +++ b/views/dashboard.slim @@ -57,7 +57,7 @@ javascript: br .progress.progress-info.progress-striped - .bar style="width: #{(current_site.total_space / Site::MAX_SPACE) * 100}%" + .bar style="width: #{(current_site.total_space / Site::MAX_SPACE.to_f) * 100}%" h4 You are currently using #{((current_site.total_space.to_f / Site::MAX_SPACE) * 100).round(1)}% (#{(current_site.total_space.to_f / 2**20).round(2)}MB) of your #{(Site::MAX_SPACE.to_f / 2**20).to_i}MB of free space.