mirror of https://github.com/mikaku/Monitorix.git
added the new option 'max_historic_years'.
This commit is contained in:
parent
3edb967f5d
commit
9bb1a24fb2
|
@ -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.");
|
logger("WARNING: the 'global_zoom' option is not valid or doesn't exist. Please consider upgrading your configuration file.");
|
||||||
$config{global_zoom} = 1;
|
$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};
|
logger("Ok, done.") unless !$options{d};
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@ disable_javascript_void = n
|
||||||
temperature_scale = c
|
temperature_scale = c
|
||||||
show_gaps = n
|
show_gaps = n
|
||||||
global_zoom = 1
|
global_zoom = 1
|
||||||
|
max_historic_years = 1
|
||||||
|
|
||||||
base_dir = /usr/share/monitorix/
|
base_dir = /usr/share/monitorix/
|
||||||
base_lib = /var/lib/monitorix/
|
base_lib = /var/lib/monitorix/
|
||||||
|
|
Loading…
Reference in New Issue