From ff8381161bdf3d674543c6c846690f0257b2124e Mon Sep 17 00:00:00 2001 From: Lukas Julian Lambertz Date: Sat, 21 Jun 2025 14:02:17 +0200 Subject: [PATCH] Changed ms to s --- nodes/timing.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nodes/timing.py b/nodes/timing.py index 8378e4f..07dd00c 100644 --- a/nodes/timing.py +++ b/nodes/timing.py @@ -13,9 +13,9 @@ class WaitNode: return { "required": { "value": (any, {"forceInput": True}), - "wait_time_ms": ("INT", { - "default": 1000, - "min": 0, + "wait_time_seconds": ("FLOAT", { + "default": 1.0, # Default wait time is 1 second + "min": 0.0, # Minimum wait time is 0 seconds }), } } @@ -26,18 +26,18 @@ class WaitNode: FUNCTION = "wait_and_pass" CATEGORY = "DebugPadawan/Timing" - def wait_and_pass(self, value, wait_time_ms): + def wait_and_pass(self, value, wait_time_seconds): """ Wait for the specified time and pass the input through Args: value: Any value to pass through - wait_time_ms (int): Time to wait in milliseconds + wait_time_seconds (float): Time to wait in seconds Returns: The same value (passthrough) """ - time.sleep(wait_time_ms / 1000.0) + time.sleep(wait_time_seconds) return (value,)