diff options
author | pdw <> | 2002-03-24 16:22:26 +0000 |
---|---|---|
committer | pdw <> | 2002-03-24 16:22:26 +0000 |
commit | 3004ea063cbb186a63af99a2e13d7cb09f23360d (patch) | |
tree | d617af0ad0619334f899d3405350edb9b1b2407b /iftop.h | |
download | iftop-3004ea063cbb186a63af99a2e13d7cb09f23360d.zip |
iftop
Diffstat (limited to 'iftop.h')
-rw-r--r-- | iftop.h | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -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_ */ |