From fe654895af2efd76917a66b18118441891a1b154 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Thu, 22 May 2014 16:16:02 +0000 Subject: [PATCH] 2014-05-22 Sergio Martin * include/functions_graph.php: Fix end of unknown periods in graphs when activate events storm protection or other prevent events triggering git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9987 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/include/functions_graph.php | 2 ++ 2 files changed, 8 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 09766953a4..1b512c5625 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2014-05-22 Sergio Martin + + * include/functions_graph.php: Fix end of unknown + periods in graphs when activate events storm protection + or other prevent events triggering + 2014-05-22 Juan Manuel Ramon * godmode/groups/group_list.php: Dont show void agents diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php index bfa23c0498..8863758737 100755 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -290,6 +290,8 @@ function grafico_modulo_sparse_data_chart (&$chart, &$chart_data_extra, &$long_i // Data in the interval if ($count > 0) { $total /= $count; + // If detect data, unknown period finishes + $is_unknown = false; } // Read events and alerts that fall in the current interval