diff --git a/ext/numeric.rb b/ext/numeric.rb index 2dc74eef..347c7178 100644 --- a/ext/numeric.rb +++ b/ext/numeric.rb @@ -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 \ No newline at end of file +end diff --git a/models/site.rb b/models/site.rb index 4aaec773..0982a86a 100644 --- a/models/site.rb +++ b/models/site.rb @@ -90,8 +90,8 @@ class Site < Sequel::Model PLAN_FEATURES[:supporter] = { name: 'Supporter', - space: Filesize.from('5GB').to_i, - bandwidth: Filesize.from('1TB').to_i, + space: Filesize.from('10GB').to_i, + bandwidth: Filesize.from('2TB').to_i, price: 5, unlimited_site_creation: true, custom_ssl_certificates: true, diff --git a/views/plan/_pricing.erb b/views/plan/_pricing.erb index 56e062e7..02161a02 100644 --- a/views/plan/_pricing.erb +++ b/views/plan/_pricing.erb @@ -110,7 +110,7 @@ <% end %>