Update to use setScale instead of setStreamScale

pull/4202/head
Isaac Connor 2022-05-25 15:54:04 -04:00
parent 02d5b7eab7
commit 32e2db03fc
1 changed files with 3 additions and 4 deletions

View File

@ -7,12 +7,12 @@ function AddNewZone(el) {
var monitors = new Array();
function initPage() {
for ( var i = 0, length = monitorData.length; i < length; i++ ) {
for ( let i = 0, length = monitorData.length; i < length; i++ ) {
monitors[i] = new MonitorStream(monitorData[i]);
// Start the fps and status updates. give a random delay so that we don't assault the server
var delay = Math.round( (Math.random()+0.5)*statusRefreshTimeout );
monitors[i].setStreamScale('0');
const delay = Math.round( (Math.random()+0.5)*statusRefreshTimeout );
monitors[i].setScale('0');
monitors[i].start(delay);
}
@ -40,4 +40,3 @@ function streamCmdQuit() {
}
window.addEventListener('DOMContentLoaded', initPage);