File 004-iftop-unlimited_text_output.patch of Package iftop
http://lists.beasts.org/pipermail/iftop-users/2014-March/000415.html
Author: Roman Hoog Antink <[email protected]>
Date: Mon Mar 17 11:34:37 2014 +0100
support unlimited text output
Index: iftop-1.0pre4/tui.c
===================================================================
--- iftop-1.0pre4.orig/tui.c
+++ iftop-1.0pre4/tui.c
@@ -73,7 +73,7 @@ void tui_print() {
printf("\n");
/* Traverse the list of all connections */
- while((nn = sorted_list_next_item(&screen_list, nn)) != NULL && l < options.num_lines) {
+ while((nn = sorted_list_next_item(&screen_list, nn)) != NULL && (!options.num_lines || l < options.num_lines)) {
/* Increment the line counter */
l++;
Index: iftop-1.0pre4/ui.c
===================================================================
--- iftop-1.0pre4.orig/ui.c
+++ iftop-1.0pre4/ui.c
@@ -50,6 +50,7 @@
" < - sort by source name\n"\
" > - sort by dest name\n"\
" o - freeze current order\n"\
+" L # - print # lines in text output\n"\
"\n"\
"iftop, version " PACKAGE_VERSION