We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6729ac commit 3a9c58aCopy full SHA for 3a9c58a
1 file changed
eternalcode-commons-shared/src/main/java/com/eternalcode/commons/progressbar/ProgressBar.java
@@ -45,11 +45,7 @@ public String render(double progress) {
45
}
46
47
public String render(int current, int max) {
48
- if (max <= 0) {
49
- return this.render(1.0);
50
- }
51
- double progress = (double) current / max;
52
- return this.render(progress);
+ return this.render(current, (long) max);
53
54
55
public String render(long current, long max) {
0 commit comments