From ab25a105da73c7b24af4d530230dc337dffd8ab8 Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Tue, 28 May 2024 00:53:16 +0300 Subject: [PATCH 1/2] Use "setMaxFPS(fps)" instead of "streamCommandstreamCommand({command: CMD_MAXFPS, maxfps: fps})" (montage.js) --- web/skins/classic/views/js/montage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/skins/classic/views/js/montage.js b/web/skins/classic/views/js/montage.js index a6b09977f..919d0ce4f 100644 --- a/web/skins/classic/views/js/montage.js +++ b/web/skins/classic/views/js/montage.js @@ -982,10 +982,10 @@ function monitorsSetRate(fps, id=null) { var currentMonitor = monitors.find((o) => { return parseInt(o["id"]) === id; }); - currentMonitor.streamCommand({command: CMD_MAXFPS, maxfps: fps}); + currentMonitor.setMaxFPS(fps); } else { for ( let i = 0, length = monitors.length; i < length; i++ ) { - monitors[i].streamCommand({command: CMD_MAXFPS, maxfps: fps}); + monitors[i].setMaxFPS(fps); } } } From 358a0d23efb0e23575e494497ce18c4b9fa81e9d Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Tue, 28 May 2024 00:55:55 +0300 Subject: [PATCH 2/2] Replaced tabs with spaces (montage.js) --- web/skins/classic/views/js/montage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/skins/classic/views/js/montage.js b/web/skins/classic/views/js/montage.js index 919d0ce4f..68404a331 100644 --- a/web/skins/classic/views/js/montage.js +++ b/web/skins/classic/views/js/montage.js @@ -985,7 +985,7 @@ function monitorsSetRate(fps, id=null) { currentMonitor.setMaxFPS(fps); } else { for ( let i = 0, length = monitors.length; i < length; i++ ) { - monitors[i].setMaxFPS(fps); + monitors[i].setMaxFPS(fps); } } }