summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpdw <>2014-01-05 17:22:39 +0000
committerpdw <>2014-01-05 17:22:39 +0000
commita7b8639fc91b95a36ccab85eac2c5e328695887f (patch)
tree1823908395a736a6908100140749b89035655ea1
parente81c0d8aaef575e1caac208004376133907b01fa (diff)
downloadiftop-a7b8639fc91b95a36ccab85eac2c5e328695887f.zip
Man page documentation of -t mode.
Compile time warning fixes. Markus Koschany <apo@gambaru.de>
-rw-r--r--iftop.84
-rw-r--r--iftop.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/iftop.8 b/iftop.8
index 399cd26..fb843cf 100644
--- a/iftop.8
+++ b/iftop.8
@@ -100,6 +100,10 @@ bitmasking.
\fB-c\fP \fIconfig file\fP
Specifies an alternate config file. If not specified, iftop will use
\fB~/.iftoprc\fP if it exists. See below for a description of config files
+.TP
+\fB-t\fP \fItext output mode\fP
+Use text interface without ncurses and print the output to STDOUT.
+
.SH DISPLAY
diff --git a/iftop.c b/iftop.c
index 1e9f910..e58fbb4 100644
--- a/iftop.c
+++ b/iftop.c
@@ -145,7 +145,7 @@ void tick(int print) {
if(t - last_timestamp >= RESOLUTION) {
analyse_data();
if (options.no_curses) {
- if (!options.timed_output || options.timed_output && t - first_timestamp >= options.timed_output) {
+ if (!options.timed_output || (options.timed_output && t - first_timestamp >= options.timed_output)) {
tui_print();
if (options.timed_output) {
finish(SIGINT);