From e2460db596ba031f9705511ca2c5b35c4c43fad4 Mon Sep 17 00:00:00 2001 From: bunnie Date: Fri, 26 Jan 2024 23:14:56 +0800 Subject: [PATCH] fix comparison on previous PR helps to test things...couldn't do that earlier due to system issues. this actually works now. --- services/gam/src/tokens.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/gam/src/tokens.rs b/services/gam/src/tokens.rs index 58de5a560..9ed40ffbb 100644 --- a/services/gam/src/tokens.rs +++ b/services/gam/src/tokens.rs @@ -54,7 +54,7 @@ impl<'a> TokenManager { // throw a bone to the dev who has to debug this error. This typically only triggers after a major // refactor and some UX element was removed and we forgot to update it in this table here. let now = self.tt.elapsed_ms(); - if *self.last_time.borrow() < now - REPEAT_MSG_INTERVAL_MS { + if *self.last_time.borrow() + REPEAT_MSG_INTERVAL_MS < now { log::info!("Occupied token slots: ***"); for t in self.tokens.iter() { log::info!(" {}", t.name);