fix for percentage on dashboard

This commit is contained in:
Kyle Drake 2013-06-22 19:19:45 -07:00
parent 8ff5cd4305
commit adab70e619

View file

@ -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.