From 165adc3cd9d815ca71b63511dd3c509ad5ac718b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20K=C3=A4mmerling?= Date: Mon, 10 Aug 2020 10:16:14 +0200 Subject: [PATCH] hcloud server describe use correct unit for traffic counter --- cli/server_describe.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/server_describe.go b/cli/server_describe.go index 19126171..d7c3fd70 100644 --- a/cli/server_describe.go +++ b/cli/server_describe.go @@ -157,9 +157,9 @@ func serverDescribeText(cli *CLI, server *hcloud.Server) error { fmt.Printf(" Longitude:\t\t%f\n", server.Datacenter.Location.Longitude) fmt.Printf("Traffic:\n") - fmt.Printf(" Outgoing:\t%v\n", humanize.Bytes(server.OutgoingTraffic)) - fmt.Printf(" Ingoing:\t%v\n", humanize.Bytes(server.IngoingTraffic)) - fmt.Printf(" Included:\t%v\n", humanize.Bytes(server.IncludedTraffic)) + fmt.Printf(" Outgoing:\t%v\n", humanize.IBytes(server.OutgoingTraffic)) + fmt.Printf(" Ingoing:\t%v\n", humanize.IBytes(server.IngoingTraffic)) + fmt.Printf(" Included:\t%v\n", humanize.IBytes(server.IncludedTraffic)) if server.BackupWindow != "" { fmt.Printf("Backup Window:\t%s\n", server.BackupWindow)