diff options
author | pdw <> | 2002-10-25 09:06:19 +0000 |
---|---|---|
committer | pdw <> | 2002-10-25 09:06:19 +0000 |
commit | f46898753e916988a68b4786dcd180b1e2e685df (patch) | |
tree | e062924821882e39dbc003fad2fba01093fc8f8e /iftop.c | |
parent | ba7202d03b9acb2c4f92397d142b69c362f1cee9 (diff) | |
download | iftop-f46898753e916988a68b4786dcd180b1e2e685df.zip |
User selectable sort criteria.
Diffstat (limited to 'iftop.c')
-rw-r--r-- | iftop.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -242,11 +242,11 @@ static void handle_ip_packet(struct ip* iptr, int hw_dir) if(direction == 0) { /* incoming */ - history_totals.recv[history_pos] += ntohs(iptr->ip_len); + history_totals.recv[history_pos] += len; history_totals.total_recv += len; } else { - history_totals.sent[history_pos] += ntohs(iptr->ip_len); + history_totals.sent[history_pos] += len; history_totals.total_sent += len; } |