# File lib/heroku/commands/pg.rb, line 356 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