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) = @_;
|
||||
|
||||
foreach my $xy (@curves)
|
||||
foreach my $curve (@curves)
|
||||
{
|
||||
if( @$xy > 1 )
|
||||
if( @$curve > 1 )
|
||||
{
|
||||
if( my $firstInWindow = first {$xy->[$_][0] >= $oldestx} 1..$#$xy )
|
||||
{ splice( @$xy, 1, $firstInWindow-1 ); }
|
||||
if( my $firstInWindow = first {$curve->[$_][0] >= $oldestx} 1..$#$curve )
|
||||
{ splice( @$curve, 1, $firstInWindow-1 ); }
|
||||
else
|
||||
{ splice( @$xy, 1); }
|
||||
{ splice( @$curve, 1); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user