Give proper int argument to encodingName()

This commit is contained in:
Pierre Ossman 2018-07-20 16:02:34 +02:00
parent ce6287574f
commit 71960cda85
1 changed files with 2 additions and 2 deletions

View File

@ -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) {