X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Faction_list_graphs.c;h=ac37cc025a519c2eb8d7ba52451e0b10f6b44b0a;hb=5b3d96f602130b08e5a3a7292330117d58cacf42;hp=1984cd5bfb29d818a9d8ee768808ee719dc8c403;hpb=5c578b1f4b9bb7b2c892b18daf1d43ef489d0ebb;p=collection4.git diff --git a/src/action_list_graphs.c b/src/action_list_graphs.c index 1984cd5..ac37cc0 100644 --- a/src/action_list_graphs.c +++ b/src/action_list_graphs.c @@ -76,10 +76,25 @@ static int print_one_graph (graph_config_t *cfg, /* {{{ */ static int print_all_graphs (__attribute__((unused)) void *user_data) /* {{{ */ { + const char *dynamic; + _Bool include_dynamic = 0; + + dynamic = param ("dynamic"); + if ((dynamic != NULL) + && (strcmp ("true", dynamic) == 0)) + include_dynamic = 1; + printf (" \n"); + if (!include_dynamic) + { + printf ("
" + "List dynamic graphs, too." + "
\n", script_name ()); + } + return (0); } /* }}} int print_all_graphs */