Skip to content

Commit 73941b0

Browse files
committed
Remove unnecessary computation in printing elapsed time
1 parent 37a8cd8 commit 73941b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/core/compiler/job_queue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ impl<'a> JobQueue<'a> {
282282
if secs >= 60 {
283283
format!("{}m {:02}s", secs / 60, secs % 60)
284284
} else {
285-
format!("{}.{:02}s", secs % 60, duration.subsec_nanos() / 10_000_000)
285+
format!("{}.{:02}s", secs, duration.subsec_nanos() / 10_000_000)
286286
}
287287
};
288288

0 commit comments

Comments
 (0)