projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added mrtg stuff
[spider.git]
/
perl
/
Spot.pm
diff --git
a/perl/Spot.pm
b/perl/Spot.pm
index 6262d79e3b16cf8bec846bf5277cb44290eda296..80d345ed69e19f716f6a258762e616c221e89817 100644
(file)
--- a/
perl/Spot.pm
+++ b/
perl/Spot.pm
@@
-26,7
+26,7
@@
$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ || (0,0))
$main::build += $VERSION;
$main::branch += $BRANCH;
$main::build += $VERSION;
$main::branch += $BRANCH;
-use vars qw($fp $statp $maxspots $defaultspots $maxdays $dirprefix $duplth $dupage $filterdef);
+use vars qw($fp $statp $maxspots $defaultspots $maxdays $dirprefix $duplth $dupage $filterdef
$totalspots $hfspots $vhfspots
);
$fp = undef;
$statp = undef;
$fp = undef;
$statp = undef;
@@
-140,6
+140,12
@@
sub add
{
my $buf = join("\^", @_[0..7]);
$fp->writeunix($_[2], $buf);
{
my $buf = join("\^", @_[0..7]);
$fp->writeunix($_[2], $buf);
+ $totalspots++;
+ if ($_[0] <= 30000) {
+ $hfspots++;
+ } else {
+ $vhfspots++;
+ }
}
# search the spot database for records based on the field no and an expression
}
# search the spot database for records based on the field no and an expression