mirror of https://github.com/mikaku/Monitorix.git
added in 'monitorix.cgi' default initialization of some options
This commit is contained in:
parent
d63494dc16
commit
845317f83d
|
@ -343,6 +343,14 @@ if($config{backwards_compat_old_multihost}) {
|
||||||
$tf{when} = $tf{twhen};
|
$tf{when} = $tf{twhen};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# make sure that some options are correctly defined
|
||||||
|
if(!$config{global_zoom}) {
|
||||||
|
$config{global_zoom} = 1;
|
||||||
|
}
|
||||||
|
if(!$config{image_format}) {
|
||||||
|
$config{image_format} = "PNG";
|
||||||
|
}
|
||||||
|
|
||||||
our ($res, $tc, $tb, $ts);
|
our ($res, $tc, $tb, $ts);
|
||||||
if($tf{twhen} eq "day") {
|
if($tf{twhen} eq "day") {
|
||||||
($tf{res}, $tf{tc}, $tf{tb}, $tf{ts}) = (3600, 'h', 24, 1);
|
($tf{res}, $tf{tc}, $tf{tb}, $tf{ts}) = (3600, 'h', 24, 1);
|
||||||
|
|
Loading…
Reference in New Issue