, &cpus[Cpu_faux_tot].cur.i, &cpus[Cpu_faux_tot].cur.w, &cpus[Cpu_faux_tot].cur.x
, &cpus[Cpu_faux_tot].cur.y, &cpus[Cpu_faux_tot].cur.z))
error_exit(N_txt(FAIL_statget_txt));
+ cpus[Cpu_faux_tot].cur.tot = cpus[Cpu_faux_tot].cur.u + cpus[Cpu_faux_tot].cur.s
+ + cpus[Cpu_faux_tot].cur.n + cpus[Cpu_faux_tot].cur.i + cpus[Cpu_faux_tot].cur.w
+ + cpus[Cpu_faux_tot].cur.x + cpus[Cpu_faux_tot].cur.y + cpus[Cpu_faux_tot].cur.z;
// now value each separate cpu's tics, maybe
for (i = 0; i < Cpu_faux_tot && i < Screen_rows; i++) {
memmove(&cpus[i], &cpus[Cpu_faux_tot], sizeof(CPU_t));
break; // tolerate cpus taken offline
}
+ cpus[i].cur.tot = cpus[i].cur.u + cpus[i].cur.s
+ + cpus[i].cur.n + cpus[i].cur.i + cpus[i].cur.w
+ + cpus[i].cur.x + cpus[i].cur.y + cpus[i].cur.z;
#ifdef PRETEND4CPUS
cpus[i].id = i;
#endif
#ifdef CPU_ZEROTICS
if (1 > tot_frme) tot_frme = 1;
#else
- if (tot_frme < ((smp_num_cpus * 10) * Rc.delay_time))
+ if (tot_frme < (cpu->cur.tot - cpu->sav.tot) / 10)
tot_frme = u_frme = s_frme = n_frme = i_frme = w_frme = x_frme = y_frme = z_frme = 0;
if (1 > tot_frme) i_frme = tot_frme = 1;
#endif
2.6.0 kernel: x == hi (hardware irq time), y == si (software irq time)
2.6.11 kernel: z == st (virtual steal time) */
TIC_t u, n, s, i, w, x, y, z; // as represented in /proc/stat
+ SIC_t tot; // total of above
} CT_t;
typedef struct CPU_t {