fix "worst" case measure of progress

This commit is contained in:
Jonathan Shook 2024-04-02 14:05:18 -05:00
parent 8f93084b5d
commit 1053de4817

View File

@ -81,7 +81,7 @@ public class MilvusDescribeIndexOp extends MilvusBaseOp<DescribeIndexParam> impl
} }
public int percent() { public int percent() {
return stream().mapToInt(IndexStat::percent).max().orElse(0); return stream().mapToInt(IndexStat::percent).min().orElse(0);
} }
} }
public static final record IndexStat( public static final record IndexStat(