Home
last modified time | relevance | path

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

/dragonfly/usr.sbin/ppp/
HDthroughput.c59 t->nSample = 0; in throughput_init()
95 t->nSample = 0; in throughput_uptime()
174 old = t->in.SampleOctets[t->nSample]; in throughput_sampler()
175 t->in.SampleOctets[t->nSample] = t->OctetsIn; in throughput_sampler()
176 t->in.OctetsPerSecond = (t->in.SampleOctets[t->nSample] - old) / divisor; in throughput_sampler()
178 old = t->out.SampleOctets[t->nSample]; in throughput_sampler()
179 t->out.SampleOctets[t->nSample] = t->OctetsOut; in throughput_sampler()
180 t->out.OctetsPerSecond = (t->out.SampleOctets[t->nSample] - old) / divisor; in throughput_sampler()
188 if (++t->nSample == t->SamplePeriod) in throughput_sampler()
189 t->nSample = 0; in throughput_sampler()
[all …]
HDthroughput.h50 int nSample; member