Skip to content

Commit e7b7bf0

Browse files
committed
max 100%
1 parent 0187695 commit e7b7bf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

progress.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (p Progress) Percent() float64 {
7777
if p.n == 0 {
7878
return 0
7979
}
80-
if p.n == p.size {
80+
if p.n >= p.size {
8181
return 100
8282
}
8383
return 100.0 / (p.size / p.n)

0 commit comments

Comments
 (0)