mirror of https://github.com/milvus-io/milvus.git
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
parent
aaab827a16
commit
143502e708
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue