mirror of
https://github.com/neocities/neocities.git
synced 2025-05-15 08:57:17 +02:00
Push supporter space to 10GB, BW to 2TB
This commit is contained in:
parent
5450ab4e83
commit
0f958023d0
3 changed files with 7 additions and 7 deletions
|
@ -12,9 +12,9 @@ class Numeric
|
|||
def to_bytes_pretty
|
||||
space = (self.to_f / ONE_MEGABYTE).round(2)
|
||||
space = space.to_i if space.denominator == 1
|
||||
if space >= 1000000
|
||||
"#{space/1000000} TB"
|
||||
elsif space >= 1000
|
||||
# if space >= 1000000
|
||||
# "#{space/1000000} TB"
|
||||
if space >= 1000
|
||||
"#{space/1000} GB"
|
||||
else
|
||||
"#{space} MB"
|
||||
|
@ -54,4 +54,4 @@ class Numeric
|
|||
def to_space_pretty
|
||||
to_bytes_pretty
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue