uploadRate 로직 수정
This commit is contained in:
@@ -199,9 +199,6 @@ public class UploadDto {
|
|||||||
private String fileName;
|
private String fileName;
|
||||||
|
|
||||||
public double getUploadRate() {
|
public double getUploadRate() {
|
||||||
if (this.chunkTotalIndex == 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