summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Warren <pdw@ex-parrot.com>2017-01-05 21:23:57 +0000
committerPaul Warren <pdw@ex-parrot.com>2017-01-05 21:23:57 +0000
commit53e1150f66a478d3c52180d395a123ae9fcb8618 (patch)
tree2bc7325985a19281e1f9bb9dae1647c3f4e8a72d
parent3fae1acf1478f36b16763660bbf93c7d32a6a028 (diff)
downloadiftop-53e1150f66a478d3c52180d395a123ae9fcb8618.zip
Support for unlimited number of lines of output in text mode - Roman Hoog Antink <rha@open.ch>
-rw-r--r--ChangeLog3
-rw-r--r--tui.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9efcb95..4b639f1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,9 @@ Unattributed items are by Paul Warren and Chris Lightfoot.
1.0
+* Support for unlimited number of lines of output for text mode
+ Roman Hoog Antink <rha@open.ch>
+
* Fix handling of short packets
Frédéric Perrin <fperrin@brocade.com>
diff --git a/tui.c b/tui.c
index 75c6e08..af10a2f 100644
--- a/tui.c
+++ b/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++;