fix taiko regression

This commit is contained in:
MaxOhn
2024-02-16 02:17:31 +01:00
parent 56882c5ff8
commit 6b6a7e1a0e
+1 -1
View File
@@ -78,7 +78,7 @@ impl Peaks {
let mut difficulty = 0.0;
let mut weight = 1.0;
peaks.sort_by(f64::total_cmp);
peaks.sort_by(|a, b| b.total_cmp(a));
for strain in peaks {
difficulty += strain * weight;