projects
/
collection4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
"list graphs" action: List only configured graphs by default.
[collection4.git]
/
src
/
action_list_graphs.c
diff --git
a/src/action_list_graphs.c
b/src/action_list_graphs.c
index
1984cd5
..
f59da7c
100644
(file)
--- a/
src/action_list_graphs.c
+++ b/
src/action_list_graphs.c
@@
-76,8
+76,16
@@
static int print_one_graph (graph_config_t *cfg, /* {{{ */
static int print_all_graphs (__attribute__((unused)) void *user_data) /* {{{ */
{
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 (" <ul class=\"graph_list\">\n");
printf (" <ul class=\"graph_list\">\n");
- gl_graph_get_all (print_one_graph, /* user_data = */ NULL);
+ gl_graph_get_all (
include_dynamic,
print_one_graph, /* user_data = */ NULL);
printf (" </ul>\n");
return (0);
printf (" </ul>\n");
return (0);