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,26 +55,23 @@ if( defined $options{"help"} )
usage();
return;
}
if( defined $options{"hardcopy"} && $options{"stream"} )
{
$options{"stream"} = undef;
}
if( !defined $options{"xlen"} )
{
usage();
die("Must specify the size of the moving x-window. Doing nothing\n");
}
my $xwindow = $options{"xlen"};
# now start the data acquisition and plotting threads
my $dataQueue = Thread::Queue->new();
if($options{"stream"})
{
if( defined $options{"hardcopy"})
{
$options{"stream"} = undef;
}
if( !defined $options{"xlen"} )
{
usage();
die("Must specify the size of the moving x-window. Doing nothing\n");
}
my $xwindow = $options{"xlen"};
my $addThr = threads->create(\&mainThread);
my $plotThr = threads->create(\&plotThread);