Skip to content

Commit

Permalink
duration_ms needs to be in seconds bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
forrest79 committed Feb 25, 2014
1 parent 4a7e846 commit 1d964ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public float getDuration() {
Object duration = diagnostic.get(DURATION_KEY);
if (duration != null) {
Float durationMS = Float.parseFloat(duration.toString());
return durationMS.floatValue();
return durationMS.floatValue() / 1000;
}
}
return super.getDuration();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public void testDurationMs() throws IOException, InterruptedException, Execution
"ok 1 - Input file opened\n" +
"not ok 2 - First line of the input valid\n" +
" ---\n" +
" duration_ms: 100.66\n" +
" duration_ms: 100660.00\n" +
" ...\n";

project.getBuildersList().add(new TestBuilder() {
Expand Down

0 comments on commit 1d964ea

Please sign in to comment.