2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-07 16:59:18 +00:00

93_DbLog: contrib 4.7.4

git-svn-id: https://svn.fhem.de/fhem/trunk@20298 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2019-10-03 16:00:58 +00:00
parent 4968e8307a
commit 99c86e6036

View File

@ -3315,6 +3315,7 @@ sub DbLog_Get($@) {
#evaluate
my $val = $sql_value;
my $ts = $sql_timestamp;
no warnings 'uninitialized';
eval("$readings[$i]->[4]");
if($@) {
Log3 $hash->{NAME}, 3, "DbLog: Error in inline function: <".$readings[$i]->[4].">, Error: $@";
@ -3324,6 +3325,7 @@ sub DbLog_Get($@) {
}
$ds = "TS: $sql_timestamp, DEV: $sql_device, RD: $sql_reading, VAL: $sql_value";
Log3 ($name, 5, "$name - Result after Regex -> $ds");
use warnings;
}
if($sql_timestamp lt $from && $deltacalc) {