From 033db88b8e71e2757b56aca10523a54ff4c5291b Mon Sep 17 00:00:00 2001 From: Joe Ardent <code@ardent.nebcorp.com> Date: Sun, 23 Oct 2022 22:14:47 -0700 Subject: [PATCH] just tweak the constants of exponentiation --- src/timer/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timer/mod.rs b/src/timer/mod.rs index 5e14b29..e6404fc 100644 --- a/src/timer/mod.rs +++ b/src/timer/mod.rs @@ -127,7 +127,7 @@ impl Timer { } self.done = - (1.0 - (remaining.as_millis() as f32) / (self.duration.as_millis() as f32)).powf(4.1); + (1.0 - (remaining.as_millis() as f32 / self.duration.as_millis() as f32)).powi(3); let (sender, rx) = channel(); {