Fixed a stupid bug causing LogicExecuter to eat your CPU
[Mograsim.git] / 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)