From 71960cda854513342926e2103651f463c1ec8451 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 20 Jul 2018 16:02:34 +0200 Subject: [PATCH] Give proper int argument to encodingName() --- core/rfb.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/rfb.js b/core/rfb.js index a52c00d2..04a40401 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -461,12 +461,12 @@ export default class RFB extends EventTargetMixin { Object.keys(stats).forEach((key) => { const s = stats[key]; if (s[0] + s[1] > 0) { - Log.Info(" " + encodingName(key) + ": " + s[0] + " rects"); + Log.Info(" " + encodingName(parseInt(key)) + ": " + s[0] + " rects"); } }); Log.Info("Encoding stats since page load:"); - Object.keys(stats).forEach(key => Log.Info(" " + encodingName(key) + ": " + stats[key][1] + " rects")); + Object.keys(stats).forEach(key => Log.Info(" " + encodingName(parseInt(key)) + ": " + stats[key][1] + " rects")); } _focusCanvas(event) {