fix stream loss in interactive mode

This commit is contained in:
Christian Giese
2022-11-09 21:45:30 +01:00
committed by Christian Giese
parent 646d2b3092
commit a6fa6bb73f
+3 -3
View File
@@ -676,7 +676,7 @@ bbl_interactive_window_job(timer_s *timer)
if(i >= stats_win_postion && i < 16+stats_win_postion) {
wprintw(stats_win, " %-16.16s | %-9.9s | %7lu | %10lu | %7lu | %10lu | %8lu\n", stream->config->name,
stream->direction == BBL_DIRECTION_UP ? "up" : "down",
stream->rate_packets_tx.avg, tx_kbps, stream->rate_packets_rx.avg, rx_kbps, stream->rx_loss);
stream->rate_packets_tx.avg, tx_kbps, stream->rate_packets_rx.avg, rx_kbps, (stream->rx_loss - stream->reset_loss));
} else if(i == 16+stats_win_postion) {
wprintw(stats_win, " ...\n");
}
@@ -687,13 +687,13 @@ bbl_interactive_window_job(timer_s *timer)
stream_sum_up_tx_kbps += tx_kbps;
stream_sum_up_rx_pps += stream->rate_packets_rx.avg;
stream_sum_up_rx_kbps += rx_kbps;
stream_sum_up_loss += stream->rx_loss;
stream_sum_up_loss += (stream->rx_loss - stream->reset_loss);
} else {
stream_sum_down_tx_pps += stream->rate_packets_tx.avg;
stream_sum_down_tx_kbps += tx_kbps;
stream_sum_down_rx_pps += stream->rate_packets_rx.avg;
stream_sum_down_rx_kbps += rx_kbps;
stream_sum_down_loss += stream->rx_loss;
stream_sum_down_loss += (stream->rx_loss - stream->reset_loss);
}
stream = stream->session_next;
}