Fixed a stupid bug causing LogicExecuter to eat your CPU
authorDaniel Kirschten <daniel.kirschten@gmx.de>
Thu, 26 Sep 2019 18:06:49 +0000 (20:06 +0200)
committerDaniel Kirschten <daniel.kirschten@gmx.de>
Thu, 26 Sep 2019 18:06:49 +0000 (20:06 +0200)
plugins/net.mograsim.logic.core/src/net/mograsim/logic/core/timeline/PauseableTimeFunction.java

index fc4aa13..f086268 100644 (file)
@@ -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)