Lines Matching refs:SampleOctets
52 t->in.SampleOctets = (long long *) in throughput_init()
53 calloc(period, sizeof *t->in.SampleOctets); in throughput_init()
55 t->out.SampleOctets = (long long *) in throughput_init()
56 calloc(period, sizeof *t->out.SampleOctets); in throughput_init()
74 if (t && t->in.SampleOctets) { in throughput_destroy()
76 free(t->in.SampleOctets); in throughput_destroy()
77 free(t->out.SampleOctets); in throughput_destroy()
78 t->in.SampleOctets = NULL; in throughput_destroy()
79 t->out.SampleOctets = NULL; in throughput_destroy()
94 t->in.SampleOctets[i] = t->out.SampleOctets[i] = 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()
204 t->in.SampleOctets[i] = t->out.SampleOctets[i] = 0; in throughput_start()
262 t->in.SampleOctets[i] = t->out.SampleOctets[i] = 0; in throughput_clear()