projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1. make spot dups look back 5 mins.
[spider.git]
/
perl
/
Geomag.pm
diff --git
a/perl/Geomag.pm
b/perl/Geomag.pm
index 6b6d778dbeb62bae791722688f5728d17018df99..dc003638209c70b3095875e63042c40f27bc8633 100644
(file)
--- a/
perl/Geomag.pm
+++ b/
perl/Geomag.pm
@@
-19,6
+19,13
@@
use DXDebug;
use DXDupe;
use strict;
use DXDupe;
use strict;
+
+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;
+
use vars qw($date $sfi $k $a $r $forecast @allowed @denied $fp $node $from
$dirprefix $param
$duplth $dupage $filterdef);
use vars qw($date $sfi $k $a $r $forecast @allowed @denied $fp $node $from
$dirprefix $param
$duplth $dupage $filterdef);
@@
-175,7
+182,7
@@
sub search
{
my $from = shift;
my $to = shift;
{
my $from = shift;
my $to = shift;
- my
@
date = $fp->unixtoj(shift);
+ my
$
date = $fp->unixtoj(shift);
my $pattern = shift;
my $search;
my @out;
my $pattern = shift;
my $search;
my @out;
@@
-199,7
+206,7
@@
sub search
$fp->close; # close any open files
$fp->close; # close any open files
- my $fh = $fp->open(
@
date);
+ my $fh = $fp->open(
$
date);
for ($count = 0; $count < $to; ) {
my @in = ();
if ($fh) {
for ($count = 0; $count < $to; ) {
my @in = ();
if ($fh) {
@@
-243,8
+250,8
@@
sub print_item
#
sub readfile
{
#
sub readfile
{
- my
@
date = $fp->unixtoj(shift);
- my $fh = $fp->open(
@
date);
+ my
$
date = $fp->unixtoj(shift);
+ my $fh = $fp->open(
$
date);
my @spots = ();
my @in;
my @spots = ();
my @in;