Commit 95b9acd3 authored by Jeffrey Morgan's avatar Jeffrey Morgan
Browse files

improve pull percentage rendering

parent 04cbf5cc
......@@ -2,6 +2,7 @@ package progress
import (
"fmt"
"math"
"os"
"strings"
"time"
......@@ -55,7 +56,7 @@ func (b *Bar) String() string {
pre.WriteString(" ")
}
fmt.Fprintf(&pre, "%.0f%% ", b.percent())
fmt.Fprintf(&pre, "%3.0f%% ", math.Floor(b.percent()))
fmt.Fprintf(&suf, "(%s/%s, %s/s, %s)",
format.HumanBytes(b.currentValue),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment