diff --git a/ext/numeric.rb b/ext/numeric.rb index 67ebda68..f9377066 100644 --- a/ext/numeric.rb +++ b/ext/numeric.rb @@ -30,6 +30,14 @@ class Numeric "#{computed} #{unit}" end + def to_gigabytes_pretty + self.to_gigabytes.to_s + ' GB' + end + + def to_gigabytes + self / (1000**3) + end + def to_comma_separated self.to_i.to_s.chars.to_a.reverse.each_slice(3).map(&:join).join(",").reverse end diff --git a/views/supporter/_compare.erb b/views/supporter/_compare.erb index aef7a1cd..c91d327d 100644 --- a/views/supporter/_compare.erb +++ b/views/supporter/_compare.erb @@ -13,15 +13,15 @@
+ * AWS and GCS price estimates only include storage and CDN bandwidth, it does not include cost of HTTP requests or cache purging/reloading. Actual costs would be much higher. +
+