X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FGeomag.pm;h=a9df0e913214c19e07a1978a7121b7a25acb7f1e;hb=329702a31bd4a526077c713b12ede457276c79db;hp=1d3462dc408cf35dc33b5dcb9d0a2a0fdd41b77c;hpb=f155969d600561b9ef151a7ce2494a0c89aed033;p=spider.git diff --git a/perl/Geomag.pm b/perl/Geomag.pm index 1d3462dc..a9df0e91 100644 --- a/perl/Geomag.pm +++ b/perl/Geomag.pm @@ -252,12 +252,11 @@ sub dup # dump if too old return 2 if $d < $main::systime - $dupage; - $d /= 60; # to the nearest minute # chomp $text; # $text = substr($text, 0, $duplth) if length $text > $duplth; my $dupkey = "$d|$sfi|$k|$a"; return 1 if exists $dup{$dupkey}; - $dup{$dupkey} = $d * 60; # in seconds (to the nearest minute) + $dup{$dupkey} = $d; # in seconds (to the nearest minute) return 0; }