Codebase list golang-github-vbauerster-mpb / cdc4adc
fixup! consistent default format "% d" among percentage/counters/speed Vladimir Bauer 3 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
3838 // pairFmt="% f / % f" output: "1.000000 MB / 12.000000 MB"
3939 func Counters(unit interface{}, pairFmt string, wcc ...WC) Decorator {
4040 if pairFmt == "" {
41 pairFmt = "%d / %d"
41 pairFmt = "% d / % d"
4242 }
4343 producer := func() DecorFunc {
4444 switch unit.(type) {
9494 // format="% f" output: "12.000000 MiB"
9595 func Total(unit interface{}, format string, wcc ...WC) Decorator {
9696 if format == "" {
97 format = "%d"
97 format = "% d"
9898 }
9999 producer := func() DecorFunc {
100100 switch unit.(type) {
206206 // format="% f" output: "12.000000 MiB"
207207 func InvertedCurrent(unit interface{}, format string, wcc ...WC) Decorator {
208208 if format == "" {
209 format = "%d"
209 format = "% d"
210210 }
211211 producer := func() DecorFunc {
212212 switch unit.(type) {