Fix: update process remaing time on 'part' method

This commit is contained in:
Laurent Clouet
2019-08-07 15:26:11 +02:00
parent d4ec9f3d92
commit edbd4cae52

View File

@@ -487,6 +487,7 @@ public class Job {
long end_render = (new Date().getTime() - this.render.getStartTime()) * total / current;
Date date = new Date(end_render);
gui.setRemainingTime(String.format("%s %% (%s)", (int) (100.0 - 100.0 * current / total), Utils.humanDuration(date)));
getProcessRender().setRemainingDuration((int) (date.getTime() / 1000));
return;
}
}