Home
last modified time | relevance | path

Searched refs:cp_diff (Results 1 – 2 of 2) sorted by relevance

/openbsd/libexec/snmpd/snmpd_metrics/
H A Dtimer.c50 static int64_t **cp_diff; variable
69 cp_old[n], cp_diff[n]); in timer_cpu()
94 cp_diff = calloc(snmpd_env->sc_ncpu, sizeof(int64_t *)); in timer_init()
96 cp_time == NULL || cp_old == NULL || cp_diff == NULL) in timer_init()
101 cp_diff[i] = calloc(CPUSTATES, sizeof(int64_t)); in timer_init()
103 cp_diff[i] == NULL) in timer_init()
/openbsd/usr.bin/top/
H A Dmachine.c93 static struct cpustats *cp_diff; variable
200 cp_diff = calloc(ncpu, sizeof(*cp_diff)); in machine_init()
201 if (cp_time == NULL || cp_old == NULL || cp_diff == NULL) in machine_init()
266 cp_old[i].cs_time, cp_diff[i].cs_time); in get_system_info()