summaryrefslogtreecommitdiff
path: root/iftop.c
diff options
context:
space:
mode:
authorpdw <>2002-10-25 09:06:19 +0000
committerpdw <>2002-10-25 09:06:19 +0000
commitf46898753e916988a68b4786dcd180b1e2e685df (patch)
treee062924821882e39dbc003fad2fba01093fc8f8e /iftop.c
parentba7202d03b9acb2c4f92397d142b69c362f1cee9 (diff)
downloadiftop-f46898753e916988a68b4786dcd180b1e2e685df.zip
User selectable sort criteria.
Diffstat (limited to 'iftop.c')
-rw-r--r--iftop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iftop.c b/iftop.c
index 364e16f..232eaf9 100644
--- a/iftop.c
+++ b/iftop.c
@@ -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;
}