On 1/12/2012 3:15 PM, Steven Dake wrote: > This is wrong - we still need to get the stats during init Unless I am unfolding this code incorrectly: totem_get_stats ->totempg_get_stats static totempg_stats_t totempg_stats; void* totempg_get_stats (void) { return &totempg_stats; } and we use that for nothing... Fabio > > On 01/12/2012 01:24 AM, Fabio M. Di Nitto wrote: >> From: "Fabio M. Di Nitto" <fdinitto@xxxxxxxxxx> >> >> and shut up another gcc warning >> >> Signed-off-by: Fabio M. Di Nitto <fdinitto@xxxxxxxxxx> >> --- >> :100644 100644 6c1ea35... 94b6f60... M exec/main.c >> exec/main.c | 4 ---- >> 1 files changed, 0 insertions(+), 4 deletions(-) >> >> diff --git a/exec/main.c b/exec/main.c >> index 6c1ea35..94b6f60 100644 >> --- a/exec/main.c >> +++ b/exec/main.c >> @@ -631,10 +631,6 @@ static void corosync_totem_dynamic_init (void) >> >> static void corosync_totem_stats_init (void) >> { >> - totempg_stats_t * stats; >> - >> - stats = api->totem_get_stats(); >> - >> icmap_set_uint32("runtime.totem.pg.mrp.srp.mtt_rx_token", 0); >> icmap_set_uint32("runtime.totem.pg.mrp.srp.avg_token_workload", 0); >> icmap_set_uint32("runtime.totem.pg.mrp.srp.avg_backlog_calc", 0); > _______________________________________________ discuss mailing list discuss@xxxxxxxxxxxx http://lists.corosync.org/mailman/listinfo/discuss