From 7b616d818bb98635d49794159e30d46e9f19547b Mon Sep 17 00:00:00 2001 From: Edward Funnekotter Date: Thu, 11 Jul 2024 13:44:40 -0400 Subject: [PATCH 1/2] Remove empty test file --- test | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 test diff --git a/test b/test deleted file mode 100644 index e69de29..0000000 From bb19336c8827a50226c3b68bc3d536741f5846d2 Mon Sep 17 00:00:00 2001 From: Edward Funnekotter Date: Sun, 14 Jul 2024 21:51:33 -0400 Subject: [PATCH 2/2] chore: Update TimerInput to fix sleep time calculation --- .../components/inputs_outputs/timer_input.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/solace_ai_connector/components/inputs_outputs/timer_input.py b/src/solace_ai_connector/components/inputs_outputs/timer_input.py index dc2821e..b9542ff 100644 --- a/src/solace_ai_connector/components/inputs_outputs/timer_input.py +++ b/src/solace_ai_connector/components/inputs_outputs/timer_input.py @@ -59,8 +59,8 @@ def get_next_message(self): else: # Sleep for the remaining time sleep_time = (self.interval_ms - delta_time) / 1000 - self.last_message_time += sleep_time time.sleep(sleep_time) + self.last_message_time = self.get_current_time() return Message(payload={})