Files
iftop/iftop.h
pdw bb3619b3fc Fixed dependency handling.
Added cumulative totals.
Added option to turn bars on/off.
2002-04-01 19:46:20 +00:00

30 lines
488 B
C

/*
* iftop.h:
*
*/
#ifndef __IFTOP_H_ /* include guard */
#define __IFTOP_H_
/* 60 / 3 */
#define HISTORY_LENGTH 20
#define RESOLUTION 2
typedef struct {
long recv[HISTORY_LENGTH];
long sent[HISTORY_LENGTH];
long total_sent;
long total_recv;
int last_write;
} history_type;
void tick();
void *xmalloc(size_t n);
void *xcalloc(size_t n, size_t m);
void *xrealloc(void *w, size_t n);
char *xstrdup(const char *s);
void xfree(void *v);
#endif /* __IFTOP_H_ */