Skip to content

Commit

Permalink
Fix seconds for sim duration in metadata... again :)
Browse files Browse the repository at this point in the history
  • Loading branch information
beltex committed Jul 15, 2014
1 parent 74d548d commit 760cc46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/sim/SimulatorMetaData.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public void setDuration(long start) {
long minutes = TimeUnit.MILLISECONDS.toMinutes(diff) -
TimeUnit.HOURS.toMinutes(hours);
long seconds = TimeUnit.MILLISECONDS.toSeconds(diff) -
TimeUnit.HOURS.toSeconds(hours) -
TimeUnit.MINUTES.toSeconds(minutes);

duration = String.format("%d hour, %d min, %d sec", hours, minutes,
Expand Down

0 comments on commit 760cc46

Please sign in to comment.