X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXDb.pm;h=6ee8f939de92e235ebd0144350c79c79550fbd47;hb=2b58ccdf81685a1167a43c38705a0d84b9d8d661;hp=6ccb9105c3307426b5c430a60fa438c5bda0ec39;hpb=06cf973726ecfc228d68bc82b63feb026d897a68;p=spider.git diff --git a/perl/DXDb.pm b/perl/DXDb.pm index 6ccb9105..6ee8f939 100644 --- a/perl/DXDb.pm +++ b/perl/DXDb.pm @@ -48,6 +48,12 @@ $lastprocesstime = time; $nextstream = 0; %stream = (); +use vars qw($VERSION $BRANCH); +$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ ); +$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ ) || 0; +$main::build += $VERSION; +$main::branch += $BRANCH; + # allocate a new stream for this request sub newstream {