X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fgraph_list.c;h=e0f2b97d8b32151e7fb9a29bfc3ee9a897b580e9;hb=7173d20ea5c32867ccb6a10f3417a632e41bfe66;hp=60ac94fc3cf55c7d23f04310ccdf5af096448b6f;hpb=3ba1ec553cbd4ea7a008e32c7f816b0294dbe860;p=collection4.git diff --git a/src/graph_list.c b/src/graph_list.c index 60ac94f..e0f2b97 100644 --- a/src/graph_list.c +++ b/src/graph_list.c @@ -158,7 +158,7 @@ static int gl_clear_hosts (void) /* {{{ */ static int gl_compare_hosts (const void *v0, const void *v1) /* {{{ */ { - return (strcmp (v0, v1)); + return (strcmp (*(char * const *) v0, *(char * const *) v1)); } /* }}} int gl_compare_hosts */ static int gl_register_file (const graph_ident_t *file, /* {{{ */ @@ -467,6 +467,7 @@ int gl_update (void) /* {{{ */ { time_t now; int status; + size_t i; /* printf ("Content-Type: text/plain\n\n"); @@ -492,6 +493,9 @@ int gl_update (void) /* {{{ */ gl_last_update = now; + for (i = 0; i < gl_active_num; i++) + graph_sort_instances (gl_active[i]); + return (status); } /* }}} int gl_update */