projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
put deletes in an eval block
[spider.git]
/
perl
/
AGWMsg.pm
diff --git
a/perl/AGWMsg.pm
b/perl/AGWMsg.pm
index 2e74da7be3005c48fd22b4cf2ed43121ec801436..69c63c1ef702423bd4a1d2df1aca0f8443dad531 100644
(file)
--- a/
perl/AGWMsg.pm
+++ b/
perl/AGWMsg.pm
@@
-44,6
+44,12
@@
$ypolltime = 10 unless defined $ypolltime;
$hpolltime = 300 unless defined $hpolltime;
%circuit = ();
$hpolltime = 300 unless defined $hpolltime;
%circuit = ();
+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;
+
sub init
{
return unless $enable;
sub init
{
return unless $enable;
@@
-293,7
+299,7
@@
sub _decode
my @lines = split /\cM/, $d;
for (@lines) {
my @lines = split /\cM/, $d;
for (@lines) {
-
s/([\x00-\x1f\x7f-\xff])/sprintf("%%%02X", ord($1))/eg;
+
#
s/([\x00-\x1f\x7f-\xff])/sprintf("%%%02X", ord($1))/eg;
dbg("AGW Monitor port: $port \"$_\"") if isdbg('agw');
}
} elsif ($sort eq 'C') {
dbg("AGW Monitor port: $port \"$_\"") if isdbg('agw');
}
} elsif ($sort eq 'C') {