enhance: Fix progress always zero due to integer divide (#35374)

See also #35183

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/35380/head
congqixia 2024-08-08 22:26:16 +08:00 committed by GitHub
parent aaab827a16
commit 143502e708
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ func (t *Tickler) Progress() int32 {
if t.total.Load() == 0 {
return t.count.Load()
}
return (t.count.Load() / t.total.Load()) * 100
return t.count.Load() * 100 / t.total.Load()
}
func (t *Tickler) Close() {