diff options
author | steven_carr <steven_carr> | 2006-05-16 19:35:17 +0000 |
---|---|---|
committer | steven_carr <steven_carr> | 2006-05-16 19:35:17 +0000 |
commit | b5ab72d65fe0a05646e0a0e5732619f11a57fc7e (patch) | |
tree | 5aa4c19e3b9680457298dcb4a710481c23e17bf3 | |
parent | 7039f24f6175e8f6165610c2a3305992c40009cc (diff) | |
download | libtdevnc-b5ab72d65fe0a05646e0a0e5732619f11a57fc7e.tar.gz libtdevnc-b5ab72d65fe0a05646e0a0e5732619f11a57fc7e.zip |
Statistics now fit into 80-column output
-rw-r--r-- | ChangeLog | 4 | ||||
-rwxr-xr-x | libvncserver/stats.c | 8 |
2 files changed, 8 insertions, 4 deletions
@@ -1,3 +1,7 @@ +2006-05-16 Steven Carr <scarr@jsa-usa.com> + * Statistics output now fits in 80-column output + * Corrected Cursor Statistics reporting as messages + 2006-05-15 Steven Carr <scarr@jsa-usa.com> * Default to RFB 3.8 * Add command line options: diff --git a/libvncserver/stats.c b/libvncserver/stats.c index 97be957..50d90d8 100755 --- a/libvncserver/stats.c +++ b/libvncserver/stats.c @@ -398,7 +398,7 @@ void rfbPrintStats(rfbClientPtr cl) if (bytesIfRaw>0.0) savings = 100.0 - (((double)bytes / (double)bytesIfRaw) * 100.0); if ((bytes>0) || (count>0) || (bytesIfRaw>0)) - rfbLog(" %-20.20s: %6d | %9.0d/%9.0d (%5.1f%%)\n", + rfbLog(" %-20.20s: %6d | %9d/%9d (%5.1f%%)\n", name, count, bytes, bytesIfRaw, savings); totalRects += count; totalBytes += bytes; @@ -416,7 +416,7 @@ void rfbPrintStats(rfbClientPtr cl) if (bytesIfRaw>0.0) savings = 100.0 - (((double)bytes / (double)bytesIfRaw) * 100.0); if ((bytes>0) || (count>0) || (bytesIfRaw>0)) - rfbLog(" %-20.20s: %6d | %9.0d/%9.0d (%5.1f%%)\n", + rfbLog(" %-20.20s: %6d | %9d/%9d (%5.1f%%)\n", name, count, bytes, bytesIfRaw, savings); totalRects += count; totalBytes += bytes; @@ -444,7 +444,7 @@ void rfbPrintStats(rfbClientPtr cl) if (bytesIfRaw>0.0) savings = 100.0 - (((double)bytes / (double)bytesIfRaw) * 100.0); if ((bytes>0) || (count>0) || (bytesIfRaw>0)) - rfbLog(" %-20.20s: %6d | %9.0d/%9.0d (%5.1f%%)\n", + rfbLog(" %-20.20s: %6d | %9d/%9d (%5.1f%%)\n", name, count, bytes, bytesIfRaw, savings); totalRects += count; totalBytes += bytes; @@ -461,7 +461,7 @@ void rfbPrintStats(rfbClientPtr cl) if (bytesIfRaw>0.0) savings = 100.0 - (((double)bytes / (double)bytesIfRaw) * 100.0); if ((bytes>0) || (count>0) || (bytesIfRaw>0)) - rfbLog(" %-20.20s: %6d | %9.0d/%9.0d (%5.1f%%)\n", + rfbLog(" %-20.20s: %6d | %9d/%9d (%5.1f%%)\n", name, count, bytes, bytesIfRaw, savings); totalRects += count; totalBytes += bytes; |