From 03c7e96ee29a22b43c60c6bbe6ba6316800a1e0c Mon Sep 17 00:00:00 2001 From: fermin831 Date: Mon, 16 Apr 2018 12:27:00 +0200 Subject: [PATCH] Removed unwanted code --- .../include/functions_reporting.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 4d896df520..be3dbad1a2 100755 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -11053,24 +11053,6 @@ function reporting_sla_get_status_period($sla_times, $priority_mode = REPORT_PRI return REPORT_STATUS_IGNORED; } -if ($value_sla['time_total'] != 0) { - if ($value_sla['time_error'] > 0) { // ERR - $raw_graph[$i]['data'] = 3; - } - elseif ($value_sla['time_unknown'] > 0) { // UNKNOWN - $raw_graph[$i]['data'] = 4; - } - elseif ($value_sla['time_not_init'] == $value_sla['time_total']) { // NOT INIT - $raw_graph[$i]['data'] = 6; - } - else { - $raw_graph[$i]['data'] = 1; - } -} -else { - $raw_graph[$i]['data'] = 7; -} - /** * @brief Translate the status to the color to graph_sla_slicebar function *