Skip to content

Commit

Permalink
Make percentage positive
Browse files Browse the repository at this point in the history
  • Loading branch information
Yatekii committed Jan 18, 2025
1 parent 57e23de commit 8f4407b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/benchmark_list_entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl Benchmark {
}

pub fn percent_change(&self) -> f64 {
self.percentage - 1.0
-(self.percentage - 1.0)
}

pub fn percent_change_text(&self) -> String {
Expand Down

0 comments on commit 8f4407b

Please sign in to comment.