From 6b4e756ee4d6cf64f3da5a3374e5ddb20d988e51 Mon Sep 17 00:00:00 2001 From: Gerardo Orellana Date: Tue, 30 Aug 2016 21:26:59 -0500 Subject: [PATCH] Added --no-html-last-updated command line option. --- src/options.c | 6 ++++++ src/output.c | 8 +++++--- src/settings.h | 1 + 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/options.c b/src/options.c index 66fb6a85c0..f9973902ad 100644 --- a/src/options.c +++ b/src/options.c @@ -105,6 +105,7 @@ struct option long_opts[] = { {"no-global-config" , no_argument , 0 , 0 } , {"no-progress" , no_argument , 0 , 0 } , {"no-tab-scroll" , no_argument , 0 , 0 } , + {"no-html-last-updated" , no_argument , 0 , 0 } , {"origin" , required_argument , 0 , 0 } , {"output" , required_argument , 0 , 0 } , {"port" , required_argument , 0 , 0 } , @@ -169,6 +170,7 @@ cmd_help (void) " --no-csv-summary - Disable summary metrics on the CSV output.\n" " --no-progress - Disable progress metrics.\n" " --no-tab-scroll - Disable scrolling through panels on TAB.\n" + " --no-html-last-updated - Hide HTML last updated field.\n" "\n" /* Server Options */ @@ -490,6 +492,10 @@ parse_long_opt (const char *name, const char *oarg) if (!strcmp ("no-tab-scroll", name)) conf.no_tab_scroll = 1; + /* no html last updated field */ + if (!strcmp ("no-html-last-updated", name)) + conf.no_html_last_updated = 1; + /* specifies the path of the GeoIP City database file */ if (!strcmp ("geoip-city-data", name) || !strcmp ("geoip-database", name)) conf.geoip_database = oarg; diff --git a/src/output.c b/src/output.c index e593253f88..ad0a93689f 100644 --- a/src/output.c +++ b/src/output.c @@ -232,7 +232,7 @@ print_html_body (FILE * fp, const char *now) "" "" - "", now, conf.html_report_title ? conf.html_report_title : ""); + "", conf.html_report_title ? conf.html_report_title : ""); fprintf (fp, "%s", tpls); } diff --git a/src/settings.h b/src/settings.h index b7cc774afc..f8588ff6a3 100644 --- a/src/settings.h +++ b/src/settings.h @@ -150,6 +150,7 @@ typedef struct GConf_ int no_csv_summary; /* don't show overall metrics */ int no_progress; /* disable progress metrics */ 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 real_os; /* show real OSs */ int real_time_html; /* enable real-time HTML output */