Home
last modified time | relevance | path

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

/freebsd-9-stable/usr.sbin/bsnmpd/modules/snmp_hostres/
Dhostres_processor_tbl.c66 double samples[MAX_CPU_SAMPLES];
67 long states[MAX_CPU_SAMPLES][CPUSTATES];
108 if (e->sample_cnt == MAX_CPU_SAMPLES) in get_avg_load()
109 oldest = (e->cur_sample_idx + 1) % MAX_CPU_SAMPLES; in get_avg_load()
142 e->cur_sample_idx = (e->cur_sample_idx + 1) % MAX_CPU_SAMPLES; in save_sample()
147 if (e->sample_cnt > MAX_CPU_SAMPLES) in save_sample()
148 e->sample_cnt = MAX_CPU_SAMPLES; in save_sample()
346 cpus_load_timer = timer_start_repeat(100, 100 * 60 / MAX_CPU_SAMPLES, in start_processor_tbl()
Dhostres_snmp.h96 #define MAX_CPU_SAMPLES 4 macro