added the new option 'max_historic_years'.

This commit is contained in:
Jordi Sanfeliu 2013-10-14 12:59:35 +02:00
parent 3edb967f5d
commit 9bb1a24fb2
2 changed files with 5 additions and 0 deletions

View File

@ -477,6 +477,10 @@ if(!$config{global_zoom}) {
logger("WARNING: the 'global_zoom' option is not valid or doesn't exist. Please consider upgrading your configuration file.");
$config{global_zoom} = 1;
}
if(!$config{max_historic_years} || $config{max_historic_years} > 5) {
logger("WARNING: the 'max_historic_years' option is not valid or doesn't exist. Please consider upgrading your configuration file.");
$config{max_historic_years} = 1;
}
logger("Ok, done.") unless !$options{d};

View File

@ -14,6 +14,7 @@ disable_javascript_void = n
temperature_scale = c
show_gaps = n
global_zoom = 1
max_historic_years = 1
base_dir = /usr/share/monitorix/
base_lib = /var/lib/monitorix/