2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 23:06:37 +00:00

98_logProxy.pm: fix für predict & steps by stromer-12. see forum: http://forum.fhem.de/index.php/topic,39232.msg366485.html#msg366485

git-svn-id: https://svn.fhem.de/fhem/trunk@10957 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2016-02-28 16:07:49 +00:00
parent 7eaa3bab8e
commit 0715222ce2

View File

@ -597,6 +597,13 @@ logProxy_clipData($$$$;$)
if( defined($predict) && !defined($next_value) ) { if( defined($predict) && !defined($next_value) ) {
$next_value = $prev_value; $next_value = $prev_value;
my $sec = SVG_time_to_sec($prev_timestamp);
if( !$ret && $sec < $from && defined($prev_value) ) {
my @t = localtime($from);
my $timestamp = sprintf("%04d-%02d-%02d_%02d:%02d:%02d", $t[5]+1900, $t[4]+1, $t[3], $t[2], $t[1], $t[0]);
$ret .= "$timestamp $prev_value\n";
}
#if $predict = 0 -> predict to end of plot #if $predict = 0 -> predict to end of plot
my $time = $to; my $time = $to;
#else predict by $predict #else predict by $predict