smol enh to ratelimiter

This commit is contained in:
ModulatingForce 2024-03-19 18:01:34 -04:00
parent 53c5780322
commit f54990a502

View file

@ -59,7 +59,7 @@ impl RateLimiter {
} else {
// when elapsed() < TIME_THRESHOLD_S && msgcounter >= MSG_THRESHOLD
// LimiterResp::Skip
LimiterResp::Sleep(TIME_MIN_S_F64 - self.lastmsgtimer.elapsed().as_secs_f64())
LimiterResp::Sleep(TIME_MIN_S_F64 - self.lastmsgtimer.elapsed().as_secs_f64() + 0.1)
};
botlog::trace(