throughput.h revision 31272
1/* 2 * $Id$ 3 */ 4 5#define SAMPLE_PERIOD 5 6 7struct pppThroughput { 8 time_t uptime; 9 u_long OctetsIn; 10 u_long OctetsOut; 11 u_long SampleOctets[SAMPLE_PERIOD]; 12 int OctetsPerSecond; 13 int BestOctetsPerSecond; 14 int nSample; 15 struct pppTimer Timer; 16}; 17 18extern void throughput_init(struct pppThroughput *); 19extern void throughput_disp(struct pppThroughput *, FILE *); 20extern void throughput_log(struct pppThroughput *, int, const char *); 21extern void throughput_start(struct pppThroughput *); 22extern void throughput_stop(struct pppThroughput *); 23extern void throughput_addin(struct pppThroughput *, int); 24extern void throughput_addout(struct pppThroughput *, int); 25