From 4d291847fa60d635eea1ee22579b542f79b6d4ce Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Tue, 7 May 2013 14:56:04 +0000 Subject: [PATCH] 2013-05-07 Sergio Martin * include/functions_reporting.php: Added to Server performance box in tactical view total events statistic for bug #2042 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8109 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_reporting.php | 15 +++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index da1a70beed..8e4af26950 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2013-05-07 Sergio Martin + + * include/functions_reporting.php: Added to Server performance + box in tactical view total events statistic for bug #2042 + 2013-05-07 Sergio Martin * include/functions_config.php: Set a default value to diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index ec2c1adeb4..2bc8cc0b53 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -973,6 +973,21 @@ function reporting_get_stats_servers($tiny = true) { $table_srv->data[] = $tdata; } + $tdata = array(); + $tdata[0] = '
'; + $table_srv->colspan[count($table_srv->data)][0] = 4; + $table_srv->rowclass[] = ''; + $table_srv->data[] = $tdata; + + $system_events = db_get_value_sql('SELECT SQL_NO_CACHE COUNT(id_evento) FROM tevento'); + + $tdata = array(); + $tdata[0] = html_print_image('images/lightning_go.png', true, array('title' => __('Total events'), 'width' => '25px')); + $tdata[1] = '' . format_numeric($system_events) . ''; + + $table_srv->colspan[count($table_srv->data)][1] = 3; + $table_srv->rowclass[] = ''; + $table_srv->data[] = $tdata; } $output = '