From 6eedd66c1a4a279cfbc1747e64cd0c9b7f4ba8f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20N=C3=BC=C3=9Flein?= Date: Wed, 17 Oct 2018 09:41:11 +0200 Subject: [PATCH] tiny formatting fix I noticed this discrepancy when trying to parse the output of restic. --- cmd/restic/format.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/format.go b/cmd/restic/format.go index 1de0335c9..f915bc77e 100644 --- a/cmd/restic/format.go +++ b/cmd/restic/format.go @@ -21,7 +21,7 @@ func formatBytes(c uint64) string { case c > 1<<10: return fmt.Sprintf("%.3f KiB", b/(1<<10)) default: - return fmt.Sprintf("%dB", c) + return fmt.Sprintf("%d B", c) } }