ConsoleProgressBar: Tries to be intelligent about start time even if the caller skips the first update.
This commit is contained in:
1 parent
4b4998026f
commit
14903c866c
2 files changed
+3
-2
No files matched your search
@@ -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