mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
bugfix: warnings
git-svn-id: https://svn.fhem.de/fhem/trunk@8010 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2401aeafe3
commit
afbcbd359c
@ -1618,7 +1618,7 @@ SYSMON_getCPUBogoMIPS($$)
|
|||||||
if(!defined $old_val) {
|
if(!defined $old_val) {
|
||||||
my @aval = SYSMON_execute($hash, "cat /proc/cpuinfo | grep 'BogoMIPS'");
|
my @aval = SYSMON_execute($hash, "cat /proc/cpuinfo | grep 'BogoMIPS'");
|
||||||
#SYSMON_Log($hash, 5, ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ".Dumper(@aval)); # TODO: Delete
|
#SYSMON_Log($hash, 5, ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ".Dumper(@aval)); # TODO: Delete
|
||||||
my $val=@aval[0];
|
my $val=$aval[0];
|
||||||
#SYSMON_Log($hash, 5, "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ".$val); # TODO: Delete
|
#SYSMON_Log($hash, 5, "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ".$val); # TODO: Delete
|
||||||
if(defined($val)){
|
if(defined($val)){
|
||||||
#Log 3,"SYSMON -----------> DEBUG: read BogoMIPS = $val";
|
#Log 3,"SYSMON -----------> DEBUG: read BogoMIPS = $val";
|
||||||
@ -3092,10 +3092,8 @@ sub
|
|||||||
SYSMON_isFB($) {
|
SYSMON_isFB($) {
|
||||||
my ($hash) = @_;
|
my ($hash) = @_;
|
||||||
if(!defined ($hash->{helper}{sys_fb})) {
|
if(!defined ($hash->{helper}{sys_fb})) {
|
||||||
#SYSMON_Log($hash, 5, "TEST isFB >>> exe >>> "); # TODO: remove
|
|
||||||
$hash->{helper}{sys_fb} = int(SYSMON_execute($hash, "[ -f /usr/bin/ctlmgr_ctl ] && echo 1 || echo 0"));
|
$hash->{helper}{sys_fb} = int(SYSMON_execute($hash, "[ -f /usr/bin/ctlmgr_ctl ] && echo 1 || echo 0"));
|
||||||
}
|
}
|
||||||
#SYSMON_Log($hash, 5, "TEST isFB >>> ret >>> '".$hash->{helper}{sys_fb}."'"); # TODO: remove
|
|
||||||
return $hash->{helper}{sys_fb};
|
return $hash->{helper}{sys_fb};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user