From 054401484eece4e4b75d6f38bdf5a9ae11f9bca4 Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Fri, 3 Jul 2015 13:16:30 +0200 Subject: [PATCH] Now the modules SLA slicebar has a different color in the planned downtimes period Ticket #2341 (cherry picked from commit a512065c22f9014db54eaedd998651ec4f8c43bc) --- pandora_console/include/functions_graph.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php index 5c9a3852f7..dd366d96ba 100755 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -1731,11 +1731,13 @@ function graph_sla_slicebar ($id, $period, $sla_min, $sla_max, $date, $daysWeek $sla_min, $sla_max, $date, $daysWeek, $time_from, $time_to); } + $col_planned_downtime = '#20973F'; + $colors = array(1 => COL_NORMAL, 2 => COL_WARNING, 3 => COL_CRITICAL, 4 => COL_UNKNOWN, - 5 => COL_NOTINIT); + 5 => $col_planned_downtime); return slicesbar_graph($data, $period, $width, $height, $colors, $config['fontpath'], $round_corner, $home_url, $ttl);