This commit is contained in:
pdw
2002-03-24 16:22:26 +00:00
commit 3004ea063c
17 changed files with 973 additions and 0 deletions

21
iftop.h Normal file
View File

@@ -0,0 +1,21 @@
/*
* iftop.h:
*
*/
#ifndef __IFTOP_H_ /* include guard */
#define __IFTOP_H_
/* 5 * 60 / 3 */
#define HISTORY_LENGTH 100
#define RESOLUTION 3
typedef struct {
long recv[HISTORY_LENGTH];
long sent[HISTORY_LENGTH];
int last_write;
} history_type;
void tick();
#endif /* __IFTOP_H_ */