diff options
author | Pierre Ossman <ossman@cendio.se> | 2015-03-03 16:30:13 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2015-03-03 16:30:13 +0100 |
commit | 64624342d98c62563c2a78b117ce3fcea9b61e68 (patch) | |
tree | 88db7fe31c62a33c3888ab1d4f7e97e7ada903dd /common/rfb/util.h | |
parent | 620dd952f266c75d1c3520bbb52ccff55fe34422 (diff) | |
download | tigervnc-64624342d98c62563c2a78b117ce3fcea9b61e68.tar.gz tigervnc-64624342d98c62563c2a78b117ce3fcea9b61e68.zip |
Shorten stats from EncodeManager using SI/IEC prefixes
Also avoids %lld which isn't supported on Windows.
Diffstat (limited to 'common/rfb/util.h')
-rw-r--r-- | common/rfb/util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/rfb/util.h b/common/rfb/util.h index 13dbe68e..98ce6420 100644 --- a/common/rfb/util.h +++ b/common/rfb/util.h @@ -90,6 +90,11 @@ namespace rfb { // Returns time elapsed since given moment in milliseconds. unsigned msSince(const struct timeval *then); + + size_t siPrefix(long long value, const char *unit, + char *buffer, size_t maxlen); + size_t iecPrefix(long long value, const char *unit, + char *buffer, size_t maxlen); } // Some platforms (e.g. Windows) include max() and min() macros in their |