Lines Matching refs:divisor
102 int secs_up, divisor; in throughput_disp() local
112 divisor = secs_up ? secs_up : 1; in throughput_disp()
119 (t->OctetsIn + t->OctetsOut) / divisor); in throughput_disp()
129 (t->OctetsIn + t->OctetsOut) / divisor); in throughput_disp()
164 int uptime, divisor; in throughput_sampler() local
170 divisor = uptime < t->SamplePeriod ? uptime + 1 : t->SamplePeriod; in throughput_sampler()
174 t->in.OctetsPerSecond = (t->in.SampleOctets[t->nSample] - old) / divisor; in throughput_sampler()
178 t->out.OctetsPerSecond = (t->out.SampleOctets[t->nSample] - old) / divisor; in throughput_sampler()
265 int divisor; in throughput_clear() local
267 if ((divisor = throughput_uptime(t)) == 0) in throughput_clear()
268 divisor = 1; in throughput_clear()
270 (t->OctetsIn + t->OctetsOut) / divisor); in throughput_clear()