From 278f0d8fd52b1700b31c65afbae4232740c6e1ac Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Tue, 8 Sep 2009 11:35:59 -0700 Subject: [PATCH] need to declare $xwindow even if not using it Ignore-this: 7770b65e421e705e4661a29d04eaeee9 darcs-hash:20090908183559-0cb85-f5bd8c607bbb61977d06ab6530c2ef8cf07c2593.gz --- driveGnuPlots.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/driveGnuPlots.pl b/driveGnuPlots.pl index 4866601..592ee7d 100755 --- a/driveGnuPlots.pl +++ b/driveGnuPlots.pl @@ -58,6 +58,7 @@ if( defined $options{"help"} ) # now start the data acquisition and plotting threads my $dataQueue = Thread::Queue->new(); +my $xwindow; if($options{"stream"}) { @@ -70,7 +71,7 @@ if($options{"stream"}) usage(); die("Must specify the size of the moving x-window. Doing nothing\n"); } - my $xwindow = $options{"xlen"}; + $xwindow = $options{"xlen"}; my $addThr = threads->create(\&mainThread); my $plotThr = threads->create(\&plotThread);