X-Git-Url: https://git.octo.it/?p=collection4.git;a=blobdiff_plain;f=src%2Faction_list_graphs.c;h=6f919e3afdfdce142a054b71d18a8e8a81844c78;hp=1984cd5bfb29d818a9d8ee768808ee719dc8c403;hb=e3fb09073a64cc051c11c4a1bdcec493f937b764;hpb=03687b5145e11d6f5eb7f235d826a850b801c1d0
diff --git a/src/action_list_graphs.c b/src/action_list_graphs.c
index 1984cd5..6f919e3 100644
--- a/src/action_list_graphs.c
+++ b/src/action_list_graphs.c
@@ -66,7 +66,7 @@ static int print_one_graph (graph_config_t *cfg, /* {{{ */
html_escape_buffer (params, sizeof (params));
printf ("
"
- "%s (%lu %s)\n",
+ "%s (%lu %s)\n",
script_name (), params, title,
(unsigned long) num_instances,
(num_instances == 1) ? "instance" : "instances");
@@ -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");
- gl_graph_get_all (print_one_graph, /* user_data = */ NULL);
+ gl_graph_get_all (include_dynamic, print_one_graph, /* user_data = */ NULL);
printf ("
\n");
+ if (!include_dynamic)
+ {
+ printf (" \n", script_name ());
+ }
+
return (0);
} /* }}} int print_all_graphs */