1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +00:00

SCP: Adjust RUNLIMIT time values on slow host systems

As reported and discussed in #819
This commit is contained in:
Mark Pizzolato
2020-03-21 21:30:58 -07:00
parent 45d7a1155b
commit ee317e0cb4
5 changed files with 33 additions and 2 deletions

View File

@@ -3467,3 +3467,11 @@ for (tmr=0; tmr<=SIM_NTIMERS; tmr++) {
sim_inst_per_sec_last = sim_precalibrate_ips;
sim_idle_stable = 0;
}
double
sim_host_speed_factor (void)
{
if (sim_precalibrate_ips > SIM_INITIAL_IPS)
return 1.0;
return (double)SIM_INITIAL_IPS / (double)sim_precalibrate_ips;
}