diff options
| author | Jeff Carr <[email protected]> | 2024-10-23 16:06:02 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-23 16:06:02 -0500 |
| commit | 0a9392be619be45ceaed1fbce223271dd22854de (patch) | |
| tree | a78df1c4e890123f72fe4a6d0931a4265e2a1d7e | |
| parent | f3f3ca4f1194c46099ac2378af5c4176968f2b34 (diff) | |
virtigo can now replace libvirt xml files
Signed-off-by: Jeff Carr <[email protected]>
| -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) } |
