From 41b49770ee04f63af8b2fdd8d2522d502778da11 Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Mon, 10 Apr 2017 11:10:32 +0200 Subject: [PATCH] Added new ranges to graph period --- pandora_console/include/functions_graph.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php index 8582655e82..9ba692708b 100644 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -353,9 +353,12 @@ function grafico_modulo_sparse_data_chart (&$chart, &$chart_data_extra, &$long_i elseif ($period < SECONDS_1MONTH) { $time_format = "M \nd H\h"; } - else { + elseif ($period < SECONDS_6MONTHS) { $time_format = "M \nd H\h"; } + else { + $time_format = "M Y"; + } } else { // Set the title and time format @@ -371,9 +374,12 @@ function grafico_modulo_sparse_data_chart (&$chart, &$chart_data_extra, &$long_i elseif ($period < SECONDS_1MONTH) { $time_format = "M d H\h"; } - else { + elseif ($period < SECONDS_6MONTHS) { $time_format = "M d H\h"; } + else { + $time_format = "M Y"; + } } $timestamp_short = date($time_format, $timestamp);