Skip to content

Commit

Permalink
Add a config flag to know if we are outputting HTML.
Browse files Browse the repository at this point in the history
  • Loading branch information
allinurl committed Sep 18, 2016
1 parent 5539fca commit c687fa7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/goaccess.c
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ set_standard_output (void)

/* HTML */
if (find_output_type (NULL, "html", 0) == 0 || conf.output_format_idx == 0)
html = 1;
conf.output_html = html = 1;

/* Spawn WS server thread */
if (html && conf.real_time_html)
Expand Down
1 change: 1 addition & 0 deletions src/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ typedef struct GConf_
int no_tab_scroll; /* don't scroll dashboard on tab */
int no_html_last_updated; /* don't show HTML last updated field */
int output_stdout; /* outputting to stdout */
int output_html; /* outputting HTML to stdout */
int real_os; /* show real OSs */
int real_time_html; /* enable real-time HTML output */
int skip_term_resolver; /* no terminal resolver */
Expand Down

0 comments on commit c687fa7

Please sign in to comment.