Skip to content

Commit

Permalink
total job processed time to showing 0 below a minute issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
AnjanaSenanayake committed Mar 30, 2020
1 parent 2699bf5 commit 646f4d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/mobilegenomics/f5n/MyUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ private static void gridAllocatedJobsAddSummeryColumn() {
newResultSummary.append("\n");
newResultSummary.append("Client Address: ").append(wrapper.getClientIP());
newResultSummary.append("\n");
long jobProcessTime = (wrapper.getCollectTime() - wrapper.getReleaseTime()) / (60000L);
newResultSummary.append("Total Job Processing Time: ").append(jobProcessTime).append(" mins");
double jobProcessTime = ((double) (wrapper.getCollectTime() - wrapper.getReleaseTime()) / (60000d));
newResultSummary.append(String.format("Total Job Processing Time: %.2f mins", jobProcessTime));
label.setValue(newResultSummary.toString());
window.setContent(label);
addWindowToParent(window);
Expand Down

0 comments on commit 646f4d4

Please sign in to comment.