Push supporter space to 10GB, BW to 2TB

This commit is contained in:
Kyle Drake 2015-03-12 13:00:55 -05:00
parent 5450ab4e83
commit 0f958023d0
3 changed files with 7 additions and 7 deletions

View file

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