1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-04-30 05:26:30 +00:00

SCP: Updated to current.

This commit is contained in:
Richard Cornwell
2020-03-25 22:29:16 -04:00
parent c3ceb57063
commit 3354d99ce5
3 changed files with 33 additions and 4 deletions

View File

@@ -150,6 +150,8 @@ return real_sim_os_ms_sleep (msec);
t_bool sim_idle_enab = FALSE; /* global flag */
volatile t_bool sim_idle_wait = FALSE; /* global flag */
int32 sim_vm_initial_ips = SIM_INITIAL_IPS;
static int32 sim_precalibrate_ips = SIM_INITIAL_IPS;
static int32 sim_calb_tmr = -1; /* the system calibrated timer */
static int32 sim_calb_tmr_last = -1; /* shadow value when at sim> prompt */
@@ -3471,7 +3473,7 @@ sim_idle_stable = 0;
double
sim_host_speed_factor (void)
{
if (sim_precalibrate_ips > SIM_INITIAL_IPS)
if (sim_precalibrate_ips > sim_vm_initial_ips)
return 1.0;
return (double)SIM_INITIAL_IPS / (double)sim_precalibrate_ips;
return (double)sim_vm_initial_ips / (double)sim_precalibrate_ips;
}