From de242bad32982f039aae8fb492a0fd055d17be1f Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Sun, 22 May 2011 15:16:33 -0700 Subject: [PATCH] renamed "xy" to "curve" --- bin/feedGnuplot | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/feedGnuplot b/bin/feedGnuplot index b165061..21b06de 100755 --- a/bin/feedGnuplot +++ b/bin/feedGnuplot @@ -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); } } } }