diff --git a/bar_filler_bar.go b/bar_filler_bar.go index e30d492..8979417 100644 --- a/bar_filler_bar.go +++ b/bar_filler_bar.go @@ -167,7 +167,7 @@ } if stat.Refill > 0 && curWidth > 0 { - refWidth = int(internal.PercentageRound(stat.Total, int64(stat.Refill), width)) + refWidth = int(internal.PercentageRound(stat.Total, stat.Refill, width)) if refWidth > curWidth { refWidth = curWidth }