ConsoleProgressBar: Tries to be intelligent about start time even if the caller skips the first update.
This commit is contained in:
@ -19,7 +19,8 @@ class ConsoleProgressBar {
|
||||
private long startTime
|
||||
|
||||
void update(int value, String info) {
|
||||
if (value == 0) startTime = System.currentTimeMillis()
|
||||
if (value == 0 || startTime == 0)
|
||||
startTime = System.currentTimeMillis()
|
||||
|
||||
def curStep
|
||||
def curPercent
|
||||
|
Reference in New Issue
Block a user