comment out redundatn code increasing load on server

This commit is contained in:
Isaac Connor 2018-10-19 15:02:10 -04:00
parent f9b1453705
commit 3723f7acb3
1 changed files with 4 additions and 0 deletions

View File

@ -422,6 +422,9 @@ function initPage() {
} }
selectLayout('#zmMontageLayout'); selectLayout('#zmMontageLayout');
if ( 0 ) {
// What is the purpose of this code? I think it just starts up a second ajax thread,
//increasing the load on the server.
for ( var i = 0; i < monitorData.length; i++ ) { for ( var i = 0; i < monitorData.length; i++ ) {
if ( monitors[i].type == 'WebSite' ) if ( monitors[i].type == 'WebSite' )
continue; continue;
@ -431,5 +434,6 @@ function initPage() {
//monitors[i].zm_startup(delay); //monitors[i].zm_startup(delay);
} }
} }
}
// Kick everything off // Kick everything off
window.addEvent( 'domready', initPage ); window.addEvent( 'domready', initPage );