From 3667b6945da598a0f02a1da437976677ab909aef Mon Sep 17 00:00:00 2001 From: Bas van der Heijden Date: Fri, 8 Dec 2023 13:46:47 +0100 Subject: [PATCH] fix: real_time_factor --- eagerx/core/rx_operators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eagerx/core/rx_operators.py b/eagerx/core/rx_operators.py index 6f66a68..033eeb7 100644 --- a/eagerx/core/rx_operators.py +++ b/eagerx/core/rx_operators.py @@ -980,7 +980,7 @@ def on_next(value): else: # If we are overdue, the proceeed cum_delay[0] += -sleep_time cum_cbs[0] += 1 - tic[0] = start + Nc / node.rate + tic[0] = start + Nc * dt # node.backend.loginfo(colored(f"[{node_name}] Nc: {Nc} | toc: {toc} | sleep_time: {sleep_time} | tic[0]: {tic[0]}", color)) # Logging