From 84a0e2baaf6f5deb68f3e200f8448963c43d1327 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Thu, 26 Feb 2015 17:52:32 +0100 Subject: [PATCH] Fixed the last value for general and exception of reportings (cherry picked from commit 6897e421d8c9b99bd818ca679bdd807f6f58fe24) --- .../include/functions_reporting.php | 36 ++++++++++--------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index d735ae7d1f..4edaee614d 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -5372,7 +5372,9 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f $table1->head = array (); $table1->head[0] = __('Agent'); $table1->head[1] = __('Module'); - $table1->head[2] = __('Operation'); + if ($content['period'] != 0) { + $table1->head[2] = __('Operation'); + } $table1->head[3] = __('Value'); $table1->style[0] = 'text-align: left'; $table1->style[1] = 'text-align: left'; @@ -5469,22 +5471,24 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f $data[0] = $agent_name[$i]; $data[1] = $module_name[$i]; - switch ($operations[$i]) { - case 'sum': - $op = __('Summatory'); - break; - case 'min': - $op = __('Minimal'); - break; - case 'max': - $op = __('Maximun'); - break; - case 'avg': - default: - $op = __('Rate'); - break; + if ($content['period'] != 0) { + switch ($operations[$i]) { + case 'sum': + $op = __('Summatory'); + break; + case 'min': + $op = __('Minimal'); + break; + case 'max': + $op = __('Maximun'); + break; + case 'avg': + default: + $op = __('Rate'); + break; + } + $data[2] = $op; } - $data[2] = $op; if ($d === false) { $data[3] = '--';