mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-16 23:06:05 +00:00
FileLog: fix delta-h/delta-d Problem (forum #23100)
git-svn-id: https://svn.fhem.de/fhem/trunk@5752 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
22b78c18a8
commit
6155791c5a
@ -759,7 +759,8 @@ RESCAN:
|
||||
my @lda = split("[_:]", $lastdate{$hd});
|
||||
my $ts = "12:00:00"; # middle timestamp
|
||||
$ts = "$lda[1]:30:00" if($hd == 13);
|
||||
my $line = sprintf("%s_%s %0.1f\n", $lda[0],$ts, $h->{last2}-$h->{last1});
|
||||
my $line = sprintf("%s_%s %0.1f\n", $lda[0],$ts,
|
||||
defined($h->{last1}) ? $h->{last2}-$h->{last1} : 0);
|
||||
|
||||
if($outf eq "-") {
|
||||
$h->{ret} .= $line;
|
||||
|
Loading…
x
Reference in New Issue
Block a user