aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/DesktopWindow.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2018-02-26 17:00:28 +0100
committerPierre Ossman <ossman@cendio.se>2018-02-26 17:00:28 +0100
commit52d3edb13a9df8c40dcd760f9d73953c753369fd (patch)
treeb0421fbca55dfc720fef942f1e191645b59f0db7 /vncviewer/DesktopWindow.cxx
parent518698a28cccc36756da806a164a8b3f77eaee46 (diff)
downloadtigervnc-52d3edb13a9df8c40dcd760f9d73953c753369fd.tar.gz
tigervnc-52d3edb13a9df8c40dcd760f9d73953c753369fd.zip
Fix incorrect numbers in performance debug graph
Copy paste errors/brain fart: - Pixels do not need a factor 8 for any conversion - Multiplying bytes by 8 gives bits, so lower case 'b', and bits use SI prefixes, not IEC
Diffstat (limited to 'vncviewer/DesktopWindow.cxx')
-rw-r--r--vncviewer/DesktopWindow.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx
index 76527799..47bdd5a6 100644
--- a/vncviewer/DesktopWindow.cxx
+++ b/vncviewer/DesktopWindow.cxx
@@ -1381,13 +1381,13 @@ void DesktopWindow::handleStatsTimeout(void *data)
fl_draw(buffer, 5, statsHeight - 5);
fl_color(FL_YELLOW);
- siPrefix(self->stats[statsCount-1].pps * 8, "pix/s",
+ siPrefix(self->stats[statsCount-1].pps, "pix/s",
buffer, sizeof(buffer), 3);
fl_draw(buffer, 5 + (statsWidth-10)/3, statsHeight - 5);
fl_color(FL_RED);
- iecPrefix(self->stats[statsCount-1].bps * 8, "Bps",
- buffer, sizeof(buffer), 3);
+ siPrefix(self->stats[statsCount-1].bps * 8, "bps",
+ buffer, sizeof(buffer), 3);
fl_draw(buffer, 5 + (statsWidth-10)*2/3, statsHeight - 5);
image = surface->image();