User selectable sort criteria.

This commit is contained in:
pdw
2002-10-25 09:06:19 +00:00
parent ba7202d03b
commit f46898753e
5 changed files with 95 additions and 18 deletions

View File

@@ -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;
}