From f5d961acea5bee7c3b38c0b31119a9998fa97667 Mon Sep 17 00:00:00 2001 From: Daniel Kirschten Date: Thu, 26 Sep 2019 20:06:49 +0200 Subject: [PATCH] Fixed a stupid bug causing LogicExecuter to eat your CPU --- .../net/mograsim/logic/core/timeline/PauseableTimeFunction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/net.mograsim.logic.core/src/net/mograsim/logic/core/timeline/PauseableTimeFunction.java b/plugins/net.mograsim.logic.core/src/net/mograsim/logic/core/timeline/PauseableTimeFunction.java index fc4aa13d..f086268f 100644 --- a/plugins/net.mograsim.logic.core/src/net/mograsim/logic/core/timeline/PauseableTimeFunction.java +++ b/plugins/net.mograsim.logic.core/src/net/mograsim/logic/core/timeline/PauseableTimeFunction.java @@ -40,7 +40,7 @@ public class PauseableTimeFunction implements LongSupplier public double getSimulTimeToRealTimeFactor() { - return 1 / 1000 / speedFactor; + return 1 / 1000d / speedFactor; } public void setSpeedFactor(double factor) -- 2.17.1