From 9245f0c0e235184dfc22e8880a833927e8d53851 Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Fri, 23 Jun 2017 11:54:15 +0200 Subject: [PATCH] Added good period to custom graphs --- pandora_console/include/functions_graph.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php index a2024a8622..c7b0b95c8a 100644 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -1007,9 +1007,13 @@ function graphic_combined_module ($module_list, $weight_list, $period, $time_format = 'M d'; $time_format_2 = 'H\h'; } - else { + elseif ($temp_range < SECONDS_6MONTHS) { $time_format = 'M d'; $time_format_2 = 'H\h'; + } + else { + $time_format = 'Y M d'; + $time_format_2 = 'H\h'; } // Set variables