X-Git-Url: http://gitweb.fperrin.net/?p=iftop.git;a=blobdiff_plain;f=ui.c;h=37bf3d515c6aa2ecf86bd39bd4f102bd747a0d20;hp=771be3155b2094b306f69416e8056442f0cf9737;hb=05a5759674e8e7124984579c67b7bea40b8e3352;hpb=fda4298dc99dfd15c20a7f8b759bb79fab45f393 diff --git a/ui.c b/ui.c index 771be31..37bf3d5 100644 --- a/ui.c +++ b/ui.c @@ -400,7 +400,9 @@ void ui_print() { readable_size(peakrecv / RESOLUTION, line, 10, 1024, options.bandwidth_unit); mvaddstr(y+1, 39, line); - readable_size(peaktotal / RESOLUTION, line, 10, 1024, options.bandwidth_unit); + /* lost packets */ + mvaddstr(y+2, 32, "lost: "); + readable_size(history_totals.lost_packets, line, 10, 1000, OPTION_BW_PKTS); mvaddstr(y+2, 39, line); mvaddstr(y, COLS - 8 * HISTORY_DIVISIONS - 8, "rates:");