mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-05-05 22:11:12 +08:00
do not require xlen if !streaming
Ignore-this: 41377b9f3e94ad852e88f14e678e30d3 darcs-hash:20090908183244-0cb85-a38c1b999cf6e86ea54eb41573921df9b0875132.gz
This commit is contained in:
parent
ed83f99a65
commit
95a9a1db91
@ -55,26 +55,23 @@ if( defined $options{"help"} )
|
|||||||
usage();
|
usage();
|
||||||
return;
|
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
|
# now start the data acquisition and plotting threads
|
||||||
my $dataQueue = Thread::Queue->new();
|
my $dataQueue = Thread::Queue->new();
|
||||||
|
|
||||||
|
|
||||||
if($options{"stream"})
|
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 $addThr = threads->create(\&mainThread);
|
||||||
my $plotThr = threads->create(\&plotThread);
|
my $plotThr = threads->create(\&plotThread);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user