모델등록 수정

This commit is contained in:
2026-01-27 16:51:08 +09:00
parent 575c98f651
commit e4faa1ad70

View File

@@ -230,9 +230,9 @@ public class ModelMngDto {
private int chunkTotalIndex; private int chunkTotalIndex;
public double getUploadRate() { public double getUploadRate() {
// if (this.chunkTotalIndex == 0) { if (chunkIndex < 0 || chunkTotalIndex < 0) {
// return 0.0; return 0.0;
// } }
return (double) (this.chunkIndex + 1) / (this.chunkTotalIndex + 1) * 100.0; return (double) (this.chunkIndex + 1) / (this.chunkTotalIndex + 1) * 100.0;
} }
} }