diff --git a/decor/counters.go b/decor/counters.go index 9cfe760..b7efdbe 100644 --- a/decor/counters.go +++ b/decor/counters.go @@ -39,7 +39,7 @@ // pairFmt="% f / % f" output: "1.000000 MB / 12.000000 MB" func Counters(unit interface{}, pairFmt string, wcc ...WC) Decorator { if pairFmt == "" { - pairFmt = "%d / %d" + pairFmt = "% d / % d" } producer := func() DecorFunc { switch unit.(type) { @@ -95,7 +95,7 @@ // format="% f" output: "12.000000 MiB" func Total(unit interface{}, format string, wcc ...WC) Decorator { if format == "" { - format = "%d" + format = "% d" } producer := func() DecorFunc { switch unit.(type) { @@ -207,7 +207,7 @@ // format="% f" output: "12.000000 MiB" func InvertedCurrent(unit interface{}, format string, wcc ...WC) Decorator { if format == "" { - format = "%d" + format = "% d" } producer := func() DecorFunc { switch unit.(type) {