Converted longs to double longs to avoid overflow problems.
This commit is contained in:
5
CHANGES
5
CHANGES
@@ -1,6 +1,11 @@
|
|||||||
Change log for iftop
|
Change log for iftop
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
|
0.5
|
||||||
|
|
||||||
|
Added support for monitoring PPP interfaces
|
||||||
|
Converted longs to double longs in various places to avoid overflow problems
|
||||||
|
|
||||||
0.4 16/04/02
|
0.4 16/04/02
|
||||||
|
|
||||||
No code changes
|
No code changes
|
||||||
|
|||||||
4
iftop.h
4
iftop.h
@@ -13,8 +13,8 @@
|
|||||||
typedef struct {
|
typedef struct {
|
||||||
long recv[HISTORY_LENGTH];
|
long recv[HISTORY_LENGTH];
|
||||||
long sent[HISTORY_LENGTH];
|
long sent[HISTORY_LENGTH];
|
||||||
long total_sent;
|
double long total_sent;
|
||||||
long total_recv;
|
double long total_recv;
|
||||||
int last_write;
|
int last_write;
|
||||||
} history_type;
|
} history_type;
|
||||||
|
|
||||||
|
|||||||
4
ui.c
4
ui.c
@@ -28,8 +28,8 @@ int history_divs[HISTORY_DIVISIONS] = {1, 5, 20};
|
|||||||
|
|
||||||
typedef struct host_pair_line_tag {
|
typedef struct host_pair_line_tag {
|
||||||
addr_pair ap;
|
addr_pair ap;
|
||||||
long recv[HISTORY_DIVISIONS];
|
double long recv[HISTORY_DIVISIONS];
|
||||||
long sent[HISTORY_DIVISIONS];
|
double long sent[HISTORY_DIVISIONS];
|
||||||
} host_pair_line;
|
} host_pair_line;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user