From e68a65a88905273f5b0a8717c3d2225f22bb2de6 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Sun, 28 Mar 2010 16:04:51 -0700 Subject: [PATCH] streaming redraw test no longer checks for $xlast, since if $haveNewData is set, $xlast is guaranteed to be set also. --- feedGnuplot.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/feedGnuplot.pl b/feedGnuplot.pl index 41b5356..bd45590 100755 --- a/feedGnuplot.pl +++ b/feedGnuplot.pl @@ -351,8 +351,9 @@ sub mainThread { } } - elsif($options{"stream"} && defined $xlast) + elsif($options{"stream"}) { + # only redraw a streaming plot if there's new data to plot next unless $haveNewData; $haveNewData = undef;