mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-05-06 06:21:16 +08:00
better sensing of "new data"
This commit is contained in:
parent
869fba996d
commit
e4f3122d3f
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user