Commit c2a24c59 authored by Christina's avatar Christina
Browse files

update synchronization

parent 662ec97a
Pipeline #917350 canceled with stages
in 17 minutes and 41 seconds
......@@ -336,7 +336,7 @@ public class Simulation implements ControllerProvider{
if (singleStepMode){
// check reached next simTime (-1 simulate one step)
// round to long to ensure correct trap.
boolean timeReached = Math.round(simTimeInSec) >= Math.round(simulateUntilInSec);
boolean timeReached = Math.round(simulateUntilInSec - simTimeInSec) <= 0;
if (timeReached && isRunSimulation){
logger.debugf("Synchronized reached at: %.4f. Wait for traci commands.", simTimeInSec);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment