diff --git a/cmd/restic/format.go b/cmd/restic/format.go index 0bc6d9fd2..063cd4e71 100644 --- a/cmd/restic/format.go +++ b/cmd/restic/format.go @@ -16,9 +16,11 @@ func formatNode(path string, n *restic.Node, long bool, human bool) string { var mode os.FileMode var target string - size := fmt.Sprintf("%6d", n.Size) + var size string if human { size = ui.FormatBytes(n.Size) + } else { + size = fmt.Sprintf("%6d", n.Size) } switch n.Type {