Display performance statistics in viewer
Adds an optional graph to the viewer to display current frame rate,
pixel rate and network bandwidth. Makes it easier to debug and test
performance related issues.
diff --git a/common/rfb/util.h b/common/rfb/util.h
index 9ad1772..e9114c3 100644
--- a/common/rfb/util.h
+++ b/common/rfb/util.h
@@ -99,9 +99,9 @@
unsigned msSince(const struct timeval *then);
size_t siPrefix(long long value, const char *unit,
- char *buffer, size_t maxlen);
+ char *buffer, size_t maxlen, int precision=6);
size_t iecPrefix(long long value, const char *unit,
- char *buffer, size_t maxlen);
+ char *buffer, size_t maxlen, int precision=6);
}
// Some platforms (e.g. Windows) include max() and min() macros in their