# File lib/heroku/command/pg.rb, line 370 def size_format(bytes) return "#{bytes}B" if bytes < KB return "#{(bytes / KB)}KB" if bytes < MB return format("%.1fMB", (bytes.to_f / MB)) if bytes < GB return format("%.2fGB", (bytes.to_f / GB)) end