diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2015-11-12 13:25:09 +0000 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2015-11-12 13:25:09 +0000 |
commit | 1ab8df03ce0c731df0f93f4c334682782759d030 (patch) | |
tree | f8a80c365ada7ce2c346e834ea15e3fe1f211c45 /server/display-channel.c | |
parent | f4810b0065c17506039e981349557cf95a8b08f7 (diff) | |
download | spice-1ab8df03ce0c731df0f93f4c334682782759d030.tar.gz spice-1ab8df03ce0c731df0f93f4c334682782759d030.tar.xz spice-1ab8df03ce0c731df0f93f4c334682782759d030.zip |
worker: fix compiling with COMPRESS_STAT enabled
Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
Diffstat (limited to 'server/display-channel.c')
-rw-r--r-- | server/display-channel.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/server/display-channel.c b/server/display-channel.c index b5d8830a..51302bdc 100644 --- a/server/display-channel.c +++ b/server/display-channel.c @@ -20,18 +20,18 @@ #include "display-channel.h" -void display_channel_compress_stats_reset(DisplayChannel *display_channel) +void display_channel_compress_stats_reset(DisplayChannel *display) { - spice_return_if_fail(display_channel); + spice_return_if_fail(display); #ifdef COMPRESS_STAT - stat_reset(&worker->display_channel->quic_stat); - stat_reset(&worker->display_channel->lz_stat); - stat_reset(&worker->display_channel->glz_stat); - stat_reset(&worker->display_channel->jpeg_stat); - stat_reset(&worker->display_channel->zlib_glz_stat); - stat_reset(&worker->display_channel->jpeg_alpha_stat); - stat_reset(&worker->display_channel->lz4_stat); + stat_reset(&display->quic_stat); + stat_reset(&display->lz_stat); + stat_reset(&display->glz_stat); + stat_reset(&display->jpeg_stat); + stat_reset(&display->zlib_glz_stat); + stat_reset(&display->jpeg_alpha_stat); + stat_reset(&display->lz4_stat); #endif } @@ -46,7 +46,7 @@ void display_channel_compress_stats_print(const DisplayChannel *display_channel) display_channel->zlib_glz_stat.comp_size : display_channel->glz_stat.comp_size; - spice_info("==> Compression stats for display %u", display_channel->common.id); + spice_info("==> Compression stats for display %u", display_channel->common.base.id); spice_info("Method \t count \torig_size(MB)\tenc_size(MB)\tenc_time(s)"); spice_info("QUIC \t%8d\t%13.2f\t%12.2f\t%12.2f", display_channel->quic_stat.count, |