From 09014536b67b0b9355170305db8d354e2527bbfd Mon Sep 17 00:00:00 2001 From: Dean Brettle Date: Mon, 15 Jul 2024 18:29:33 -0700 Subject: [PATCH] Fix type of delayMs. --- .../java/org/carlmontrobotics/deepbluesim/WebotsSupervisor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/controller/src/main/java/org/carlmontrobotics/deepbluesim/WebotsSupervisor.java b/plugin/controller/src/main/java/org/carlmontrobotics/deepbluesim/WebotsSupervisor.java index eb88ffc..29e13bf 100644 --- a/plugin/controller/src/main/java/org/carlmontrobotics/deepbluesim/WebotsSupervisor.java +++ b/plugin/controller/src/main/java/org/carlmontrobotics/deepbluesim/WebotsSupervisor.java @@ -113,7 +113,7 @@ public static void init(Supervisor robot, int basicTimeStep) { delayer = new Timer(); // Set to something like 100 if you are trying to reproduce the latencies we sometimes see // on some underpowered CI machines - double delayMs = 0; + long delayMs = 0; ConnectionProcessor.setThreadExecutor((ev) -> { if (delayMs == 0) { queuedEvents.add(ev);