mirror of https://github.com/mikaku/Monitorix.git
Fix variable name to snake_case style.
This commit is contained in:
parent
b8f9d73a94
commit
247693f24b
|
@ -145,12 +145,12 @@ sub ambsens_update {
|
|||
my $e2 = 1;
|
||||
foreach my $dl (split(',', $ambsens->{desc}->{$e})) {
|
||||
my $str = trim($dl);
|
||||
my $scriptWithArguments = trim($ambsens->{cmd}->{$str});
|
||||
my $script = (split(' ', $scriptWithArguments))[0];
|
||||
my $script_with_arguments = trim($ambsens->{cmd}->{$str});
|
||||
my $script = (split(' ', $script_with_arguments))[0];
|
||||
|
||||
if($script) {
|
||||
if(-x $script) {
|
||||
my $val = `$scriptWithArguments`;
|
||||
my $val = `$script_with_arguments`;
|
||||
chomp($val);
|
||||
$sens[$e][$e2] = $val;
|
||||
|
||||
|
|
Loading…
Reference in New Issue