Adjusted handling of totals. All promisc packets are now added to the incoming

total.
This commit is contained in:
pdw
2002-03-28 12:14:20 +00:00
parent afa7248c03
commit d85d096413
3 changed files with 19 additions and 2 deletions

10
ui.c
View File

@@ -190,7 +190,15 @@ void ui_print() {
tsent = trecv = 0;
trecv += d->recv[ii];
tsent += d->sent[ii];
if(d->promisc == 1) {
/* If this was picked up by promiscuous mode, it must
* have been incoming
*/
trecv += d->recv[ii];
}
else {
tsent += d->sent[ii];
}
for(j = 0; j < HISTORY_DIVISIONS; j++) {
if(i < history_divs[j]) {