Lines Matching refs:SampleOctets
50 t->in.SampleOctets = (long long *) in throughput_init()
51 calloc(period, sizeof *t->in.SampleOctets); in throughput_init()
53 t->out.SampleOctets = (long long *) in throughput_init()
54 calloc(period, sizeof *t->out.SampleOctets); in throughput_init()
72 if (t && t->in.SampleOctets) { in throughput_destroy()
74 free(t->in.SampleOctets); in throughput_destroy()
75 free(t->out.SampleOctets); in throughput_destroy()
76 t->in.SampleOctets = NULL; in throughput_destroy()
77 t->out.SampleOctets = NULL; in throughput_destroy()
92 t->in.SampleOctets[i] = t->out.SampleOctets[i] = 0; in throughput_uptime()
172 old = t->in.SampleOctets[t->nSample]; in throughput_sampler()
173 t->in.SampleOctets[t->nSample] = t->OctetsIn; in throughput_sampler()
174 t->in.OctetsPerSecond = (t->in.SampleOctets[t->nSample] - old) / divisor; in throughput_sampler()
176 old = t->out.SampleOctets[t->nSample]; in throughput_sampler()
177 t->out.SampleOctets[t->nSample] = t->OctetsOut; in throughput_sampler()
178 t->out.OctetsPerSecond = (t->out.SampleOctets[t->nSample] - old) / divisor; in throughput_sampler()
202 t->in.SampleOctets[i] = t->out.SampleOctets[i] = 0; in throughput_start()
260 t->in.SampleOctets[i] = t->out.SampleOctets[i] = 0; in throughput_clear()