use last completed task for Total Runtime instead of currentTimeMillis in ArbiterModule Summary Status

Signed-off-by: Tamás Fenyvesi <tamas.fenyvesi@doknet.hu>
master
Tamás Fenyvesi 2020-05-06 13:39:36 +02:00
parent cf11c2394a
commit 55be669069
1 changed files with 6 additions and 2 deletions

View File

@ -788,7 +788,6 @@ public class ArbiterModule implements UIModule {
//TODO: I18N //TODO: I18N
//TODO don't use currentTimeMillis due to stored data??
long bestTime; long bestTime;
Double bestScore = null; Double bestScore = null;
String bestModelString = null; String bestModelString = null;
@ -805,7 +804,12 @@ public class ArbiterModule implements UIModule {
String execTotalRuntimeStr = ""; String execTotalRuntimeStr = "";
if(execStartTime > 0){ if(execStartTime > 0){
execStartTimeStr = TIME_FORMATTER.print(execStartTime); execStartTimeStr = TIME_FORMATTER.print(execStartTime);
execTotalRuntimeStr = UIUtils.formatDuration(System.currentTimeMillis() - execStartTime); // allModelInfo is sorted by Persistable::getTimeStamp
long lastCompleteTime = execStartTime;
if (!allModelInfo.isEmpty()) {
lastCompleteTime = allModelInfo.get(allModelInfo.size() - 1).getTimeStamp();
}
execTotalRuntimeStr = UIUtils.formatDuration(lastCompleteTime - execStartTime);
} }