mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-17 05:16:02 +00:00
98_logProxy.pm: fix for 0 values. see forum: http://forum.fhem.de/index.php?topic=36414.msg287858#msg287858
git-svn-id: https://svn.fhem.de/fhem/trunk@8460 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
af42e0d6e4
commit
d2570e4fbf
@ -303,7 +303,7 @@ logProxy_WeekProfile2Plot($$$;$)
|
||||
next if( SVG_time_to_sec($timestamp) < $fromsec );
|
||||
|
||||
# add first value at start of plot range
|
||||
if( !$ret && $prev_value ) {
|
||||
if( !$ret && defined($prev_value) ) {
|
||||
$min = $prev_value if( $prev_value < $min );
|
||||
$max = $prev_value if( $prev_value > $max );
|
||||
$ret .= "$from $prev_value\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user