summaryrefslogtreecommitdiffstats
path: root/src/crash.rs
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-10-29 22:16:15 +0100
committersalmonik <salmonik@tuta.io>2026-10-29 22:16:15 +0100
commitbc0de9955c375cf27d52c9934403964205afc182 (patch)
tree42799fb426fb0ec164f44c92a63525003c582f35 /src/crash.rs
parentinitial connection timeout set to 10s (diff)
downloadzagan-bet-bc0de9955c375cf27d52c9934403964205afc182.tar.gz
zagan-bet-bc0de9955c375cf27d52c9934403964205afc182.zip
formatting
Diffstat (limited to '')
-rw-r--r--src/crash.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/crash.rs b/src/crash.rs
index 55aab19..2936b99 100644
--- a/src/crash.rs
+++ b/src/crash.rs
@@ -24,9 +24,7 @@ pub fn multiplier_at_secs(seconds: f64) -> f64 {
24 if !seconds.is_finite() || seconds <= 0.0 { 24 if !seconds.is_finite() || seconds <= 0.0 {
25 return 1.0; 25 return 1.0;
26 } 26 }
27 (GROWTH_RATE * seconds) 27 (GROWTH_RATE * seconds).exp().clamp(1.0, MAX_MULTIPLIER)
28 .exp()
29 .clamp(1.0, MAX_MULTIPLIER)
30} 28}
31 29
32/// How long a round runs before reaching `multiplier`. 30/// How long a round runs before reaching `multiplier`.