mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-05-06 06:21:16 +08:00
renamed "xy" to "curve"
This commit is contained in:
parent
339c2f9a3d
commit
de242bad32
@ -505,14 +505,14 @@ sub pruneOldData
|
|||||||
{
|
{
|
||||||
my ($oldestx) = @_;
|
my ($oldestx) = @_;
|
||||||
|
|
||||||
foreach my $xy (@curves)
|
foreach my $curve (@curves)
|
||||||
{
|
{
|
||||||
if( @$xy > 1 )
|
if( @$curve > 1 )
|
||||||
{
|
{
|
||||||
if( my $firstInWindow = first {$xy->[$_][0] >= $oldestx} 1..$#$xy )
|
if( my $firstInWindow = first {$curve->[$_][0] >= $oldestx} 1..$#$curve )
|
||||||
{ splice( @$xy, 1, $firstInWindow-1 ); }
|
{ splice( @$curve, 1, $firstInWindow-1 ); }
|
||||||
else
|
else
|
||||||
{ splice( @$xy, 1); }
|
{ splice( @$curve, 1); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user