diff --git a/bar.go b/bar.go index 8f181f4..a5a8e4b 100644 --- a/bar.go +++ b/bar.go @@ -523,8 +523,8 @@ func newStatistics(tw int, s *bState) decor.Statistics { return decor.Statistics{ + AvailableWidth: tw, ID: s.id, - AvailableWidth: tw, Total: s.total, Current: s.current, Refill: s.refill, diff --git a/decor/decorator.go b/decor/decorator.go index 9fec57b..aad7709 100644 --- a/decor/decorator.go +++ b/decor/decorator.go @@ -47,8 +47,8 @@ // Statistics consists of progress related statistics, that Decorator // may need. type Statistics struct { + AvailableWidth int ID int - AvailableWidth int Total int64 Current int64 Refill int64