diff options
author | Jonathon Jongsma <jjongsma@redhat.com> | 2015-01-28 10:30:12 -0600 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2016-02-15 12:04:02 +0000 |
commit | 41d97b037ad89f3f7676d969aa2140e17fe821d7 (patch) | |
tree | 4e93ea8bd8426064affc84f329e581e10aab69ba /server/dcc-send.c | |
parent | 47223da1a3d5762b7d7bb5e06d3a32aa701832d8 (diff) |
Add RedsState arg to all stat functions
Acked-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'server/dcc-send.c')
-rw-r--r-- | server/dcc-send.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/dcc-send.c b/server/dcc-send.c index ab076345..8144ed2c 100644 --- a/server/dcc-send.c +++ b/server/dcc-send.c @@ -207,13 +207,13 @@ static void red_display_add_image_to_pixmap_cache(RedChannelClient *rcc, io_image->descriptor.flags |= SPICE_IMAGE_FLAGS_CACHE_ME; dcc->send_data.pixmap_cache_items[dcc->send_data.num_pixmap_cache_items++] = image->descriptor.id; - stat_inc_counter(display_channel->add_to_cache_counter, 1); + stat_inc_counter(reds, display_channel->add_to_cache_counter, 1); } } } if (!(io_image->descriptor.flags & SPICE_IMAGE_FLAGS_CACHE_ME)) { - stat_inc_counter(display_channel->non_cache_counter, 1); + stat_inc_counter(reds, display_channel->non_cache_counter, 1); } } @@ -376,7 +376,7 @@ static FillBitsType fill_bits(DisplayChannelClient *dcc, SpiceMarshaller *m, &bitmap_palette_out, &lzplt_palette_out); spice_assert(bitmap_palette_out == NULL); spice_assert(lzplt_palette_out == NULL); - stat_inc_counter(display->cache_hits_counter, 1); + stat_inc_counter(reds, display->cache_hits_counter, 1); pthread_mutex_unlock(&dcc->pixmap_cache->lock); return FILL_BITS_TYPE_CACHE; } else { |