int64 wrap is unnecessary
Vladimir Bauer
4 years ago
| 166 | 166 |
}
|
| 167 | 167 |
|
| 168 | 168 |
if stat.Refill > 0 && curWidth > 0 {
|
| 169 | |
refWidth = int(internal.PercentageRound(stat.Total, int64(stat.Refill), width))
|
|
169 |
refWidth = int(internal.PercentageRound(stat.Total, stat.Refill, width))
|
| 170 | 170 |
if refWidth > curWidth {
|
| 171 | 171 |
refWidth = curWidth
|
| 172 | 172 |
}
|