mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
Minor fix SLA graph
This commit is contained in:
parent
b8d7a94eb8
commit
d5c61771d7
@ -683,18 +683,18 @@ function reporting_SLA($report, $content, $type = 'dinamic',
|
|||||||
|
|
||||||
// generate raw data for graph
|
// generate raw data for graph
|
||||||
if ($value_sla['time_total'] != 0) {
|
if ($value_sla['time_total'] != 0) {
|
||||||
if ($value_sla['time_unknown'] == $value_sla['time_total']) { // UNKNOWN
|
if ($value_sla['time_error'] > 0) { // ERR
|
||||||
|
$raw_graph[$i]['data'] = 3;
|
||||||
|
}
|
||||||
|
elseif ($value_sla['time_unknown'] > 0) { // UNKNOWN
|
||||||
$raw_graph[$i]['data'] = 4;
|
$raw_graph[$i]['data'] = 4;
|
||||||
}
|
}
|
||||||
elseif ($value_sla['time_not_init'] == $value_sla['time_total']) { // NOT INIT
|
elseif ($value_sla['time_not_init'] == $value_sla['time_total']) { // NOT INIT
|
||||||
$raw_graph[$i]['data'] = 6;
|
$raw_graph[$i]['data'] = 6;
|
||||||
}
|
}
|
||||||
elseif ($value_sla['SLA'] >= $sla['sla_limit']) { // OK
|
else {
|
||||||
$raw_graph[$i]['data'] = 1;
|
$raw_graph[$i]['data'] = 1;
|
||||||
}
|
}
|
||||||
elseif ($value_sla['SLA'] < $sla['sla_limit']) { // ERR
|
|
||||||
$raw_graph[$i]['data'] = 3;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$raw_graph[$i]['data'] = 7;
|
$raw_graph[$i]['data'] = 7;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user