From 8f210aa3a93bafab43eba645c9bc2babab999b93 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 9 Jun 2010 19:03:42 +0200 Subject: [PATCH] action_list_graphs.c: Group instances by the graph object. --- action_list_graphs.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/action_list_graphs.c b/action_list_graphs.c index 16d5cc4..c239222 100644 --- a/action_list_graphs.c +++ b/action_list_graphs.c @@ -43,16 +43,16 @@ static int print_graph_json (const graph_list_t *gl, void *user_data) /* {{{ */ return (0); } /* }}} int print_graph_json */ -static int print_graph_inst_html (__attribute__((unused)) graph_config_t *cfg, /* {{{ */ +static int print_graph_inst_html (graph_config_t *cfg, /* {{{ */ graph_instance_t *inst, __attribute__((unused)) void *user_data) { char buffer[1024]; memset (buffer, 0, sizeof (buffer)); - gl_instance_get_ident (inst, buffer, sizeof (buffer)); + gl_instance_get_params (cfg, inst, buffer, sizeof (buffer)); - printf ("
  • %s
  • \n", buffer); + printf ("
  • %s
  • \n", buffer, buffer); return (0); } /* }}} int print_graph_inst_html */ @@ -60,7 +60,12 @@ static int print_graph_inst_html (__attribute__((unused)) graph_config_t *cfg, / static int print_graph_html (graph_config_t *cfg, /* {{{ */ __attribute__((unused)) void *user_data) { - printf ("
  • %p\n