From 812737c2a75a37618452bce26a6be6225ffcec4d Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Thu, 30 Apr 2015 17:25:29 +0200 Subject: [PATCH] Fixed the size of the charts for SLA when it is showed in a dashboard. TICKET: #2173 --- .../include/functions_reporting.php | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 4c0bc895c3..6cc2622f66 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -3648,6 +3648,8 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f $sizem = '1.5'; $sizgraph_w = '450'; $sizgraph_h = '100'; + + $sla_width = '250'; } else { $sizem = '3'; @@ -4508,9 +4510,21 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f $dataslice[0] .= "
"; $dataslice[0] .= modules_get_agentmodule_name ($sla['id_agent_module']); - $dataslice[1] = graph_sla_slicebar ($sla['id_agent_module'], $content['period'], - $sla['sla_min'], $sla['sla_max'], $report['datetime'], $content, $content['time_from'], - $content['time_to'], 650, 25, $urlImage, 1, false, false); + $dataslice[1] = graph_sla_slicebar ( + $sla['id_agent_module'], + $content['period'], + $sla['sla_min'], + $sla['sla_max'], + $report['datetime'], + $content, + $content['time_from'], + $content['time_to'], + $sla_width, + 25, + $urlImage, + 1, + false, + false); array_push ($tableslice->data, $dataslice); }