Skip to content

Commit

Permalink
tweak formatting of uncertain nps estimates
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Mar 18, 2024
1 parent c95fc81 commit beb62c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,13 @@ impl NpsRecorder {
impl fmt::Display for NpsRecorder {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{} knps/core", self.nps / 1000)?;
if self.uncertainty > 0.7 {
write!(f, "?")?;
if self.uncertainty > 0.1 {
write!(f, " ?")?;
}
if self.uncertainty > 0.4 {
write!(f, "?")?;
}
if self.uncertainty > 0.1 {
if self.uncertainty > 0.7 {
write!(f, "?")?;
}
Ok(())
Expand Down

0 comments on commit beb62c9

Please sign in to comment.