do not require xlen if !streaming

Ignore-this: 41377b9f3e94ad852e88f14e678e30d3

darcs-hash:20090908183244-0cb85-a38c1b999cf6e86ea54eb41573921df9b0875132.gz
This commit is contained in:
Dima Kogan 2009-09-08 11:32:44 -07:00
parent ed83f99a65
commit 95a9a1db91

View File

@ -55,7 +55,13 @@ if( defined $options{"help"} )
usage(); usage();
return; return;
} }
if( defined $options{"hardcopy"} && $options{"stream"} )
# now start the data acquisition and plotting threads
my $dataQueue = Thread::Queue->new();
if($options{"stream"})
{
if( defined $options{"hardcopy"})
{ {
$options{"stream"} = undef; $options{"stream"} = undef;
} }
@ -66,15 +72,6 @@ if( !defined $options{"xlen"} )
} }
my $xwindow = $options{"xlen"}; my $xwindow = $options{"xlen"};
# now start the data acquisition and plotting threads
my $dataQueue = Thread::Queue->new();
if($options{"stream"})
{
my $addThr = threads->create(\&mainThread); my $addThr = threads->create(\&mainThread);
my $plotThr = threads->create(\&plotThread); my $plotThr = threads->create(\&plotThread);