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:
rudolfkoenig
2014-05-05 15:41:00 +00:00
parent 844702a00e
commit d33aba9d83

View File

@@ -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;