From 0a9392be619be45ceaed1fbce223271dd22854de Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 23 Oct 2024 16:06:02 -0500 Subject: [PATCH] virtigo can now replace libvirt xml files Signed-off-by: Jeff Carr --- helpers.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helpers.go b/helpers.go index 8af3f60..8df7040 100644 --- a/helpers.go +++ b/helpers.go @@ -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) }