From e4f3122d3f5c07003ea58028dab8422c206d8bc6 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Mon, 18 Oct 2010 13:44:33 -0700 Subject: [PATCH] better sensing of "new data" --- feedGnuplot.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/feedGnuplot.pl b/feedGnuplot.pl index 1d95747..0bfb0d9 100755 --- a/feedGnuplot.pl +++ b/feedGnuplot.pl @@ -358,8 +358,6 @@ sub mainThread { if($_ ne "Plot now") { - $haveNewData = 1; - # parse the incoming data lines. The format is # x idx0 dat0 idx1 dat1 .... # where idxX is the index of the curve that datX corresponds to @@ -396,6 +394,7 @@ sub mainThread { my $idx = $1; my $point = $2; + $haveNewData = 1; pushPoint($idx, [$xlast, $point]); } } @@ -404,6 +403,7 @@ sub mainThread { my $idx = 0; foreach my $point (/$numRE/go) { + $haveNewData = 1; pushPoint($idx, [$xlast, $point]); $idx++; }