mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-18 06:41:08 +00:00
Update Pregenerator.java
This commit is contained in:
@@ -473,7 +473,7 @@ public class Pregenerator implements Listener
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String[] getProgress() {
|
public String[] getProgress() {
|
||||||
long eta = (long) ((totalChunks.get() - generated.get()) * ((double)(M.ms() - elapsed) / (double) generated.get()));
|
long eta = (long) ((totalChunks.get() - generated.get()) / perSecond.getAverage());
|
||||||
|
|
||||||
return new String[]{
|
return new String[]{
|
||||||
"Progress: " + Form.f(generated.get()) + " of " + Form.f(totalChunks.get()) + " (" + Form.pc((double)generated.get() / (double)totalChunks.get(), 0) + ")",
|
"Progress: " + Form.f(generated.get()) + " of " + Form.f(totalChunks.get()) + " (" + Form.pc((double)generated.get() / (double)totalChunks.get(), 0) + ")",
|
||||||
|
|||||||
Reference in New Issue
Block a user