diff options
author | Jonathon Jongsma <jjongsma@redhat.com> | 2015-01-28 10:30:12 -0600 |
---|---|---|
committer | Fabiano FidĂȘncio <fidencio@redhat.com> | 2015-02-23 23:00:45 +0100 |
commit | 30b685937771a6c14d3f0d8d25ecc08244180972 (patch) | |
tree | f611794edf2dfe9645218e801788aa97a75ac859 /server/red-channel.c | |
parent | b1f20873e13fe9bb718537b8cc74ab6c2f4f9137 (diff) | |
download | spice-30b685937771a6c14d3f0d8d25ecc08244180972.tar.gz spice-30b685937771a6c14d3f0d8d25ecc08244180972.tar.xz spice-30b685937771a6c14d3f0d8d25ecc08244180972.zip |
Add RedsState arg to all stat functions
Diffstat (limited to 'server/red-channel.c')
-rw-r--r-- | server/red-channel.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |