mirror of
https://github.com/rtbrick/bngblaster.git
synced 2024-05-06 15:54:57 +00:00
fix stream loss in interactive mode
This commit is contained in:
committed by
Christian Giese
parent
646d2b3092
commit
a6fa6bb73f
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user