Commit a7b8639f by pdw

Man page documentation of -t mode.

Compile time warning fixes. Markus Koschany <apo@gambaru.de>
parent e81c0d8a
...@@ -100,6 +100,10 @@ bitmasking. ...@@ -100,6 +100,10 @@ bitmasking.
\fB-c\fP \fIconfig file\fP \fB-c\fP \fIconfig file\fP
Specifies an alternate config file. If not specified, iftop will use 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 \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 .SH DISPLAY
......
...@@ -145,7 +145,7 @@ void tick(int print) { ...@@ -145,7 +145,7 @@ void tick(int print) {
if(t - last_timestamp >= RESOLUTION) { if(t - last_timestamp >= RESOLUTION) {
analyse_data(); analyse_data();
if (options.no_curses) { 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(); tui_print();
if (options.timed_output) { if (options.timed_output) {
finish(SIGINT); finish(SIGINT);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment