98_logProxy.pm: use prev_value instead of next_value for end of plot if interpolation is disabled. fits better for plot mode steps

git-svn-id: https://svn.fhem.de/fhem/trunk@7006 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2014-11-17 17:02:47 +00:00
parent cd44586d38
commit 9b16e37701

View File

@ -560,7 +560,7 @@ logProxy_clipData($$$$;$)
} }
if( $next_value ) { if( $next_value ) {
my $value = $next_value; my $value = $prev_value;
$value = logProxy_linearInterpolate( SVG_time_to_sec($prev_timestamp), $prev_value, SVG_time_to_sec($next_timestamp), $next_value, $to ) if( $interpolate ); $value = logProxy_linearInterpolate( SVG_time_to_sec($prev_timestamp), $prev_value, SVG_time_to_sec($next_timestamp), $next_value, $to ) if( $interpolate );
my @t = localtime($to); my @t = localtime($to);