summaryrefslogtreecommitdiffstats
path: root/common/rfb/SMsgWriter.cxx
diff options
context:
space:
mode:
authorDRC <dcommander@users.sourceforge.net>2011-08-19 03:13:47 +0000
committerDRC <dcommander@users.sourceforge.net>2011-08-19 03:13:47 +0000
commit887c5fd86e052f31a4cd039b5634a16af7c8e780 (patch)
treed5f1feaa01d2f8c3ac8dbc79438381805b420e00 /common/rfb/SMsgWriter.cxx
parente3ffcf7337b4567765a78abdcf3b5f63d381bc08 (diff)
downloadtigervnc-887c5fd86e052f31a4cd039b5634a16af7c8e780.tar.gz
tigervnc-887c5fd86e052f31a4cd039b5634a16af7c8e780.zip
Make rawBytesEquivalent an unsigned 64-bit integer. Otherwise, it will overflow in less than a minute if using a full-screen video or 3D application.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4639 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/SMsgWriter.cxx')
-rw-r--r--common/rfb/SMsgWriter.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/SMsgWriter.cxx b/common/rfb/SMsgWriter.cxx
index f0a97c59..07ae37d5 100644
--- a/common/rfb/SMsgWriter.cxx
+++ b/common/rfb/SMsgWriter.cxx
@@ -53,7 +53,7 @@ SMsgWriter::~SMsgWriter()
vlog.info(" %s rects %d, bytes %d",
encodingName(i), rectsSent[i], bytesSent[i]);
}
- vlog.info(" raw bytes equivalent %d, compression ratio %f",
+ vlog.info(" raw bytes equivalent %llu, compression ratio %f",
rawBytesEquivalent, (double)rawBytesEquivalent / bytes);
delete [] imageBuf;
}