Added good period to custom graphs

This commit is contained in:
Arturo Gonzalez 2017-06-23 11:54:15 +02:00
parent 472d37dbdd
commit 9245f0c0e2
1 changed files with 5 additions and 1 deletions

View File

@ -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