summaryrefslogtreecommitdiff
path: root/iftop.h
diff options
context:
space:
mode:
authorpdw <>2002-03-24 16:22:26 +0000
committerpdw <>2002-03-24 16:22:26 +0000
commit3004ea063cbb186a63af99a2e13d7cb09f23360d (patch)
treed617af0ad0619334f899d3405350edb9b1b2407b /iftop.h
downloadiftop-3004ea063cbb186a63af99a2e13d7cb09f23360d.zip
iftop
Diffstat (limited to 'iftop.h')
-rw-r--r--iftop.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/iftop.h b/iftop.h
new file mode 100644
index 0000000..2b75394
--- /dev/null
+++ b/iftop.h
@@ -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_ */