Home
last modified time | relevance | path

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

/freebsd/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_processor_tbl.c64 double samples[MAX_CPU_SAMPLES];
65 long states[MAX_CPU_SAMPLES][CPUSTATES];
106 if (e->sample_cnt == MAX_CPU_SAMPLES) in get_avg_load()
107 oldest = (e->cur_sample_idx + 1) % MAX_CPU_SAMPLES; in get_avg_load()
140 e->cur_sample_idx = (e->cur_sample_idx + 1) % MAX_CPU_SAMPLES; in save_sample()
145 if (e->sample_cnt > MAX_CPU_SAMPLES) in save_sample()
146 e->sample_cnt = MAX_CPU_SAMPLES; in save_sample()
344 cpus_load_timer = timer_start_repeat(100, 100 * 60 / MAX_CPU_SAMPLES, in start_processor_tbl()
H A Dhostres_snmp.h94 #define MAX_CPU_SAMPLES 4 macro