Merge pull request #4163 from IgorA100/patch-180200

Chore: Removed the use of the "delay" constant as it is no longer used when starting monitors on the Montage page
This commit is contained in:
Isaac Connor
2024-10-03 06:51:14 -04:00
committed by GitHub
2 changed files with 2 additions and 4 deletions

View File

@@ -224,7 +224,7 @@ function MonitorStream(monitorData) {
}
}; // setStreamScale
this.start = function(delay=500) {
this.start = function() {
if (this.janusEnabled) {
let server;
if (ZM_JANUS_PATH) {

View File

@@ -583,9 +583,7 @@ function startMonitors() {
const isOut = isOutOfViewport(monitor.getElement());
if (!isOut.all) {
// Start the fps and status updates. give a random delay so that we don't assault the server
const delay = Math.round( (Math.random()+0.5)*statusRefreshTimeout );
monitors[i].start(delay);
monitor.start();
}
if ((monitor.type == 'WebSite') && (monitor.refresh > 0)) {
setInterval(reloadWebSite, monitor.refresh*1000, i);