use DXChannel;
use DB_File;
use DXDebug;
+use vars qw (@ISA %bid $bidfn $lastbidclean $bidcleanint %hash $maxbidage);
@ISA = qw(DXChannel);
-use vars qw (%bid $bidfn $lastbidclean $bidcleanint);
-
%bid = (); # the bid hash
$bidfn = "$main::root/msg/bid"; # the bid file filename
$lastbidclean = time; # the last time the bid file was cleaned
$bidcleanint = 86400; # the time between bid cleaning intervals
$maxbidage = 60; # the maximum age of a stored bid
+use vars qw($VERSION $BRANCH);
+$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
+$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ || (0,0));
+$main::build += $VERSION;
+$main::branch += $BRANCH;
+
sub init
{
tie %hash, 'DB_File', $bidfn;
}
} elsif ($com =~ /^F/) {
$self->disconnect;
- } elsif ($com =~ /^(B|Q)) {
+ } elsif ($com =~ /^(B|Q)/) {
$self->disconnect;
}
}
}
+1;
+