feat/infer_dev_260107 #1
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user