2013-04-24 Miguel de Dios <miguel.dedios@artica.es>

* include/functions_reporting.php, include/functions_servers.php:
	fixed the set default value for "local_modules_rate".
	
	Fixes: #3611336




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8050 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2013-04-24 15:01:52 +00:00
parent 0a25b5bdc4
commit c9cbc64d16
3 changed files with 21 additions and 12 deletions

View File

@ -1,3 +1,10 @@
2013-04-24 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_reporting.php, include/functions_servers.php:
fixed the set default value for "local_modules_rate".
Fixes: #3611336
2013-04-24 Miguel de Dios <miguel.dedios@artica.es> 2013-04-24 Miguel de Dios <miguel.dedios@artica.es>
* extensions/agents_alerts.php, extensions/agents_modules.php, * extensions/agents_alerts.php, extensions/agents_modules.php,

View File

@ -894,7 +894,8 @@ function reporting_get_stats_servers($tiny = true) {
$tdata[0] = html_print_image('images/database.png', true, array('title' => __('Local modules'), 'width' => '25px')); $tdata[0] = html_print_image('images/database.png', true, array('title' => __('Local modules'), 'width' => '25px'));
$tdata[1] = '<span class="big_data">' . format_numeric($server_performance ["total_local_modules"]) . '</span>'; $tdata[1] = '<span class="big_data">' . format_numeric($server_performance ["total_local_modules"]) . '</span>';
$tdata[2] = '<span class="med_data">' . format_numeric($server_performance ["local_modules_rate"], 2) . '</span>'; $tdata[2] = '<span class="med_data">' .
format_numeric($server_performance ["local_modules_rate"], 2) . '</span>';
$tdata[3] = html_print_image('images/module.png', true, array('title' => __('Ratio') . ': ' . __('Modules by second'), 'width' => '16px')) . '/sec </span>'; $tdata[3] = html_print_image('images/module.png', true, array('title' => __('Ratio') . ': ' . __('Modules by second'), 'width' => '16px')) . '/sec </span>';
$table_srv->rowclass[] = ''; $table_srv->rowclass[] = '';

View File

@ -78,6 +78,7 @@ function servers_get_performance () {
$data["avg_interval_total_modules"] = array(); $data["avg_interval_total_modules"] = array();
$data["avg_interval_remote_modules"] = array(); $data["avg_interval_remote_modules"] = array();
$data["avg_interval_local_modules"] = 0; $data["avg_interval_local_modules"] = 0;
$data["local_modules_rate"] = 0;
if ($config["realtimestats"] == 1) { if ($config["realtimestats"] == 1) {
$counts = db_get_all_rows_sql ("SELECT tagente_modulo.id_modulo, COUNT(tagente_modulo.id_agente_modulo) modules $counts = db_get_all_rows_sql ("SELECT tagente_modulo.id_modulo, COUNT(tagente_modulo.id_agente_modulo) modules