Skip to content

Commit

Permalink
Floor ratings before calculate_scores
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrankel committed Dec 30, 2023
1 parent 9bb44d5 commit d39b5b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state/results_screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ fn enter_results_screen(
const LO: f64 = 1.5;
const HI: f64 = 4.8;
let elapsed = time.elapsed_seconds_f64() - start_time.0;
let ratings = (elapsed / 60.0).clamp(5.0, 120.0);
let ratings = (elapsed / 60.0).clamp(5.0, 120.0).floor();
let scores: [f64; 4] = simulation.calculate_scores(ratings);
for (row, (&criterion, score)) in TABLE_CRITERIA_TEXT
.iter()
Expand Down

0 comments on commit d39b5b1

Please sign in to comment.