Template:Team:Paris Saclay/simbox

From 2013.igem.org

(Difference between revisions)
Line 200: Line 200:
  while(tmpdate.getTime() - time1 < simulations[simid].refresh_run_time)
  while(tmpdate.getTime() - time1 < simulations[simid].refresh_run_time)
 +
{
   simulation_step(simid);
   simulation_step(simid);
 +
}
   
   
  simbox_update_controls(simid);
  simbox_update_controls(simid);
-
  simulations[simid].timeout= setTimeout(function() {simbox_refresh(simid);}, refresh_run_time);
+
  simulations[simid].timeout= setTimeout(function() {simbox_refresh(simid);}, simulations[simid].refresh_interval);
}
}

Revision as of 22:42, 2 August 2013