]> gitweb.fperrin.net Git - iftop.git/blobdiff - ui.c
Keep track of lost packets as reported by pcap_stats
[iftop.git] / ui.c
diff --git a/ui.c b/ui.c
index 771be3155b2094b306f69416e8056442f0cf9737..37bf3d515c6aa2ecf86bd39bd4f102bd747a0d20 100644 (file)
--- 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:");