mirror of https://github.com/mikaku/Monitorix.git
small fix
This commit is contained in:
parent
3c34d56ad4
commit
361fce3ff3
|
@ -90,12 +90,12 @@ sub setup_riglim {
|
||||||
my ($rigid, $limit) = @_;
|
my ($rigid, $limit) = @_;
|
||||||
my @riglim;
|
my @riglim;
|
||||||
|
|
||||||
my ($upper, $lower) = split(':', trim($limit));
|
my ($upper, $lower) = split(':', trim($limit) || "0:0");
|
||||||
if(trim($rigid) eq 1) {
|
if(trim($rigid || 0) eq 1) {
|
||||||
push(@riglim, "--upper-limit=" . ($upper || 0));
|
push(@riglim, "--upper-limit=" . ($upper || 0));
|
||||||
push(@riglim, "--lower-limit=" . ($lower || 0));
|
push(@riglim, "--lower-limit=" . ($lower || 0));
|
||||||
} else {
|
} else {
|
||||||
if(trim($rigid) eq 2) {
|
if(trim($rigid || 0) eq 2) {
|
||||||
push(@riglim, "--upper-limit=" . ($upper || 0));
|
push(@riglim, "--upper-limit=" . ($upper || 0));
|
||||||
push(@riglim, "--lower-limit=" . ($lower || 0));
|
push(@riglim, "--lower-limit=" . ($lower || 0));
|
||||||
push(@riglim, "--rigid");
|
push(@riglim, "--rigid");
|
||||||
|
|
Loading…
Reference in New Issue