From 087fcff9a5342f7a10c9f378bd4130f409657001 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 13 May 2010 12:16:17 +0200 Subject: rate_ctr: Store the numeric index as part of 'rate_ctr_group' --- src/rate_ctr.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/rate_ctr.c') diff --git a/src/rate_ctr.c b/src/rate_ctr.c index 9b2459e8..bde090a4 100644 --- a/src/rate_ctr.c +++ b/src/rate_ctr.c @@ -51,6 +51,7 @@ struct rate_ctr_group *rate_ctr_group_alloc(void *ctx, return NULL; group->desc = desc; + group->idx = idx; /* Generate the Group prefix from the user-specified index */ group->name_prefix = talloc_size(group, strlen(desc->group_prefix_fmt) + 20); sprintf(group->name_prefix, desc->group_prefix_fmt, idx); -- cgit v1.2.3