Skip to content

Commit

Permalink
Fix duration representation
Browse files Browse the repository at this point in the history
Currently if pagefind takes e.g. 1 ms it would be incorrectly displayed
as "0.1 seconds" instead of "0.001 seconds". This patch fixes the
behaviour.
  • Loading branch information
danpls committed Sep 20, 2023
1 parent 5eff203 commit 5589a25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pagefind/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ async fn main() {
let duration = start.elapsed();

logger.status(&format!(
"Finished in {}.{} seconds",
"Finished in {}.{:03} seconds",
duration.as_secs(),
duration.subsec_millis()
));
Expand Down

0 comments on commit 5589a25

Please sign in to comment.