diff options
author | runge <runge> | 2006-06-03 20:49:09 +0000 |
---|---|---|
committer | runge <runge> | 2006-06-03 20:49:09 +0000 |
commit | 203eee7cfdb70556125f959d3b548fbd1213d8d2 (patch) | |
tree | d1da7e1014d58f2e7c44bda9b23652b4286a8887 /x11vnc/rates.c | |
parent | 8417618289bd95663789bb67d841800f166c57a0 (diff) | |
download | libtdevnc-203eee7cfdb70556125f959d3b548fbd1213d8d2.tar.gz libtdevnc-203eee7cfdb70556125f959d3b548fbd1213d8d2.zip |
x11vnc: -capslock -skip_lockkeys; Alt keys under -rawfb cons.
Diffstat (limited to 'x11vnc/rates.c')
-rw-r--r-- | x11vnc/rates.c | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/x11vnc/rates.c b/x11vnc/rates.c index d6f1c5c..7b00238 100644 --- a/x11vnc/rates.c +++ b/x11vnc/rates.c @@ -350,8 +350,16 @@ db = 0; } nclients++; + +#if 0 + for (i=0; i<MAX_ENCODINGS; i++) { + cbs += cl->bytesSent[i]; + } + rbs = cl->rawBytesEquivalent; +#else cbs = rfbStatGetSentBytes(cl); rbs = rfbStatGetSentBytesIfRaw(cl); +#endif if (init) { @@ -432,7 +440,13 @@ if (db) fprintf(stderr, "%d client num rects req: %d mod: %d cbs: %d " if (db) fprintf(stderr, "dt2 calc: num rects req: %d/%d mod: %d/%d " "fbu-sent: %d dt: %.4f dt2: %.4f tm: %.4f\n", - req0, req1, mod0, mod1, rfbStatGetMessageCountSent(cl, rfbFramebufferUpdate), dt, dt2, tm); + req0, req1, mod0, mod1, +#if 0 + cl->framebufferUpdateMessagesSent, +#else + rfbStatGetMessageCountSent(cl, rfbFramebufferUpdate), +#endif + dt, dt2, tm); if (req1 != 0 && mod1 == 0) { got_t2 = 1; break; @@ -499,7 +513,13 @@ if (db) fprintf(stderr, "dt2 calc: num rects req: %d/%d mod: %d/%d " if (db) fprintf(stderr, "dt3 calc: num rects req: %d/%d mod: %d/%d " "fbu-sent: %d dt: %.4f dt3: %.4f tm: %.4f\n", - req0, req1, mod0, mod1, rfbStatGetMessageCountSent(cl, rfbFramebufferUpdate), dt, dt3, tm); + req0, req1, mod0, mod1, +#if 0 + cl->framebufferUpdateMessagesSent, +#else + rfbStatGetMessageCountSent(cl, rfbFramebufferUpdate), +#endif + dt, dt3, tm); if (req1 != 0 && mod1 == 0) { dts[got_t3++] = dt3; |