Skip to content

Commit

Permalink
Reduce precision in default per_sec values
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Sep 15, 2021
1 parent 380c042 commit 82644f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/style.rs
Expand Up @@ -276,7 +276,7 @@ impl ProgressStyle {
format!("{}", FormattedDuration(state.started.elapsed()))
}
"elapsed" => format!("{:#}", HumanDuration(state.started.elapsed())),
"per_sec" => format!("{}/s", state.per_sec()),
"per_sec" => format!("{:.4}/s", state.per_sec()),
"bytes_per_sec" => format!("{}/s", HumanBytes(state.per_sec() as u64)),
"binary_bytes_per_sec" => {
format!("{}/s", BinaryBytes(state.per_sec() as u64))
Expand Down

0 comments on commit 82644f3

Please sign in to comment.