Use correct time for progress task

This commit is contained in:
Jesse Boyd 2016-12-29 11:52:20 +11:00
parent 80417bdc2b
commit 362067f90d
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -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));
}