mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
fix for percentage on dashboard
This commit is contained in:
parent
8ff5cd4305
commit
adab70e619
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ javascript:
|
||||||
br
|
br
|
||||||
|
|
||||||
.progress.progress-info.progress-striped
|
.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.
|
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.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue