Use correct time for progress task
This commit is contained in:
parent
80417bdc2b
commit
362067f90d
@ -51,10 +51,11 @@ public class DefaultProgressTracker extends RunnableVal2<FaweQueue.ProgressType,
|
||||
}
|
||||
|
||||
private final void done() {
|
||||
final long time = System.currentTimeMillis() - start;
|
||||
TaskManager.IMP.task(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
doneTask();
|
||||
doneTask(time);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -75,8 +76,7 @@ public class DefaultProgressTracker extends RunnableVal2<FaweQueue.ProgressType,
|
||||
}
|
||||
}
|
||||
|
||||
public void doneTask() {
|
||||
final long time = System.currentTimeMillis() - start;
|
||||
public void doneTask(long time) {
|
||||
player.sendTitle("", BBC.PROGRESS_DONE.format(time / 1000d));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user