projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add the latest CTY data
[spider.git]
/
perl
/
DXDupe.pm
diff --git
a/perl/DXDupe.pm
b/perl/DXDupe.pm
index 6595ef879c7cdd4446106e2a5183758d62fd2af7..1dd7c700ff9fdbc0fc40202e6c6a7df328a79d0a 100644
(file)
--- a/
perl/DXDupe.pm
+++ b/
perl/DXDupe.pm
@@
-74,9
+74,11
@@
sub process
{
# once an hour
if ($main::systime - $lasttime >= 3600) {
+ my @del;
while (($k, $v) = each %d) {
-
delete $d{$k}
if $main::systime >= $v;
+
push @del, $k
if $main::systime >= $v;
}
+ delete $d{$_} for @del;
$lasttime = $main::systime;
}
}