Skip to content

Commit

Permalink
Remove unnecessary computation in printing elapsed time
Browse files Browse the repository at this point in the history
  • Loading branch information
ordovicia committed May 10, 2018
1 parent 37a8cd8 commit 73941b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/core/compiler/job_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ impl<'a> JobQueue<'a> {
if secs >= 60 {
format!("{}m {:02}s", secs / 60, secs % 60)
} else {
format!("{}.{:02}s", secs % 60, duration.subsec_nanos() / 10_000_000)
format!("{}.{:02}s", secs, duration.subsec_nanos() / 10_000_000)
}
};

Expand Down

0 comments on commit 73941b0

Please sign in to comment.