diff options
| -rw-r--r-- | helpers.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -116,7 +116,9 @@ func (c *Cluster) AddDroplet(uuid string, hostname string, cpus int, mem int) *D return d } -func FormatBytes(b int64) string { +// This isn't for the marketing department +// so this isn't going to use 'MiB' and 'GiB' +func HumanFormatBytes(b int64) string { if b < 2000 { return fmt.Sprintf("%d B", b) } |
