mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
Now the modules SLA slicebar has a different color in the planned downtimes period
Ticket #2341
This commit is contained in:
parent
a62791e9c0
commit
a512065c22
@ -1771,11 +1771,13 @@ function graph_sla_slicebar ($id, $period, $sla_min, $sla_max, $date, $daysWeek
|
|||||||
$sla_min, $sla_max, $date, $daysWeek, $time_from, $time_to);
|
$sla_min, $sla_max, $date, $daysWeek, $time_from, $time_to);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$col_planned_downtime = '#20973F';
|
||||||
|
|
||||||
$colors = array(1 => COL_NORMAL,
|
$colors = array(1 => COL_NORMAL,
|
||||||
2 => COL_WARNING,
|
2 => COL_WARNING,
|
||||||
3 => COL_CRITICAL,
|
3 => COL_CRITICAL,
|
||||||
4 => COL_UNKNOWN,
|
4 => COL_UNKNOWN,
|
||||||
5 => COL_NOTINIT);
|
5 => $col_planned_downtime);
|
||||||
|
|
||||||
return slicesbar_graph($data, $period, $width, $height, $colors,
|
return slicesbar_graph($data, $period, $width, $height, $colors,
|
||||||
$config['fontpath'], $round_corner, $home_url, $ttl);
|
$config['fontpath'], $round_corner, $home_url, $ttl);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user