From 30b685937771a6c14d3f0d8d25ecc08244180972 Mon Sep 17 00:00:00 2001 From: Jonathon Jongsma Date: Wed, 28 Jan 2015 10:30:12 -0600 Subject: Add RedsState arg to all stat functions --- server/red-channel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/red-channel.c') diff --git a/server/red-channel.c b/server/red-channel.c index d50a059a..6ffc3869 100644 --- a/server/red-channel.c +++ b/server/red-channel.c @@ -397,7 +397,7 @@ static void red_channel_client_on_output(void *opaque, int n) if (rcc->connectivity_monitor.timer) { rcc->connectivity_monitor.out_bytes += n; } - stat_inc_counter(rcc->channel->out_bytes_counter, n); + reds_stat_inc_counter(reds, rcc->channel->out_bytes_counter, n); } static void red_channel_client_on_input(void *opaque, int n) @@ -1161,7 +1161,7 @@ void red_channel_set_stat_node(RedChannel *channel, StatNodeRef stat) #ifdef RED_STATISTICS channel->stat = stat; - channel->out_bytes_counter = stat_add_counter(stat, "out_bytes", TRUE); + channel->out_bytes_counter = reds_stat_add_counter(reds, stat, "out_bytes", TRUE); #endif } -- cgit