Skip to content

Commit 717f6cf

Browse files
committed
Completion message was being printed when not even being run fully
1 parent 8c34dc6 commit 717f6cf

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/main/java/com/ffxivcensus/gatherer/GathererController.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,16 +107,16 @@ public static void main(String[] args) {
107107
endId = highestID;
108108
System.out.println("Starting parse of range " + startId + " to " + endId + " using " + threadLimit + " threads");
109109
gatherRange();
110-
}
110+
//Get current time
111+
long endTime = System.currentTimeMillis();
112+
long seconds = (endTime - startTime) / 1000;
113+
long minutes = seconds / 60;
114+
long hours = minutes / 60;
115+
long days = hours / 24;
116+
String time = days + " Days, " + hours % 24 + " hrs, " + minutes % 60 + " mins, " + seconds % 60 + " secs";
117+
System.out.println("Run completed, " + ((highestID - lowestID) + 1) + " character IDs scanned in " + time + " (" + threadLimit + " threads)");
111118

112-
//Get current time
113-
long endTime = System.currentTimeMillis();
114-
long seconds = (endTime - startTime) / 1000;
115-
long minutes = seconds / 60;
116-
long hours = minutes / 60;
117-
long days = hours / 24;
118-
String time = days + " Days, " + hours % 24 + " hrs, " + minutes % 60 + " mins, " + seconds % 60 + " secs";
119-
System.out.println("Run completed, " + ((highestID - lowestID) + 1) + " character IDs scanned in " + time + " (" + threadLimit + " threads)");
119+
}
120120

121121
} catch (Exception ex) {
122122
ex.printStackTrace();

0 commit comments

Comments
 (0)