diff --git a/lxc/import.go b/lxc/import.go index bba2e0912865..d1b989363432 100644 --- a/lxc/import.go +++ b/lxc/import.go @@ -1,8 +1,8 @@ package main import ( - "fmt" "os" + "strconv" "strings" "github.com/spf13/cobra" @@ -108,7 +108,7 @@ func (c *cmdImport) run(cmd *cobra.Command, args []string) error { Tracker: &ioprogress.ProgressTracker{ Length: fstat.Size(), Handler: func(percent int64, speed int64) { - progress.UpdateProgress(ioprogress.ProgressData{Text: fmt.Sprintf("%d%% (%s/s)", percent, units.GetByteSizeString(speed, 2))}) + progress.UpdateProgress(ioprogress.ProgressData{Text: strconv.FormatInt(percent, 10) + "% (" + units.GetByteSizeString(speed, 2) + "/s)"}) }, }, },