diff --git a/pandora_console/godmode/setup/performance.php b/pandora_console/godmode/setup/performance.php index 9e663e63cc..e51f6ff7a9 100644 --- a/pandora_console/godmode/setup/performance.php +++ b/pandora_console/godmode/setup/performance.php @@ -665,6 +665,20 @@ $table_other->data[12][1] = html_print_input_text( true ); +$table_other->data[13][0] = __('Events response max. execution'); +$table_other->data[13][0] .= ui_print_help_tip( + __('Number of events that will perform the desired action at the same time'), + true +); +$table_other->data[13][1] = html_print_input_text( + 'max_execution_event_response', + $config['max_execution_event_response'], + '', + 5, + 5, + true +); + echo '
'; - echo ' '; + echo ' '; echo ''; } } @@ -1012,7 +1016,7 @@ if ($group_rep == 2) { var total_checked = $(".chk_val:checked").length; // Limit number of events to apply custom responses to for performance reasons - if (total_checked > 10) { + if (total_checked > ) { $('#max_custom_event_resp_msg').show(); return; } @@ -1022,18 +1026,22 @@ if ($group_rep == 2) { $('#response_loading_dialog').show(function() { $(".chk_val").each(function() { - if ($(this).is(":checked")) { - //var server_id = $('#hidden-server_id_'+). event_id = $(this).val(); server_id = $('#hidden-server_id_'+event_id).val(); - - response['target'] = get_response_target(event_id, response_id, server_id); - + response['target'] = get_response_target( + event_id, + response_id, + server_id + ); if (total_checked-1 === counter) end=1; - - show_massive_response_dialog(event_id, response_id, response, counter, end); - + show_massive_response_dialog( + event_id, + response_id, + response, + counter, + end + ); counter++; } }); @@ -1087,4 +1095,3 @@ if ($group_rep == 2) { echo ''; } -