mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +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:
parent
7eaa3bab8e
commit
0715222ce2
@ -597,6 +597,13 @@ logProxy_clipData($$$$;$)
|
||||
if( defined($predict) && !defined($next_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
|
||||
my $time = $to;
|
||||
#else predict by $predict
|
||||
|
Loading…
x
Reference in New Issue
Block a user