summaryrefslogtreecommitdiffstats
path: root/x11vnc/rates.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/rates.c')
-rw-r--r--x11vnc/rates.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/x11vnc/rates.c b/x11vnc/rates.c
index a199dac..64fb3d4 100644
--- a/x11vnc/rates.c
+++ b/x11vnc/rates.c
@@ -377,9 +377,11 @@ void measure_send_rates(int init) {
}
rbs = cl->rawBytesEquivalent;
#else
+#if LIBVNCSERVER_HAS_STATS
cbs = rfbStatGetSentBytes(cl);
rbs = rfbStatGetSentBytesIfRaw(cl);
#endif
+#endif
if (init) {
@@ -481,8 +483,10 @@ if (db) fprintf(stderr, "dt2 calc: num rects req: %d/%d mod: %d/%d "
#if 0
cl->framebufferUpdateMessagesSent,
#else
+#if LIBVNCSERVER_HAS_STATS
rfbStatGetMessageCountSent(cl, rfbFramebufferUpdate),
#endif
+#endif
dt, dt2, tm);
if (req1 != 0 && mod1 == 0) {
got_t2 = 1;
@@ -558,8 +562,10 @@ if (db) fprintf(stderr, "dt3 calc: num rects req: %d/%d mod: %d/%d "
#if 0
cl->framebufferUpdateMessagesSent,
#else
+#if LIBVNCSERVER_HAS_STATS
rfbStatGetMessageCountSent(cl, rfbFramebufferUpdate),
#endif
+#endif
dt, dt3, tm);
if (req1 != 0 && mod1 == 0) {