diff options
Diffstat (limited to 'Echolot')
-rw-r--r-- | Echolot/Pinger.pm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Echolot/Pinger.pm b/Echolot/Pinger.pm index 8fcc488..0a96ea3 100644 --- a/Echolot/Pinger.pm +++ b/Echolot/Pinger.pm @@ -1,7 +1,7 @@ package Echolot::Pinger; # (c) 2002 Peter Palfrader <peter@palfrader.org> -# $Id: Pinger.pm,v 1.12 2002/07/16 02:48:57 weasel Exp $ +# $Id: Pinger.pm,v 1.13 2002/07/17 02:34:48 weasel Exp $ # =pod @@ -106,13 +106,11 @@ sub send_pings() { my $timemod = ($now / $call_intervall); my $this_call_id = $timemod % $send_every_n_calls; - my $this_remailer_id = makeHash($address) % $send_every_n_calls; - - next unless ($this_call_id eq $this_remailer_id); for my $type (Echolot::Globals::get()->{'storage'}->get_types($address)) { next unless Echolot::Config::get()->{'do_pings'}->{$type}; for my $key (Echolot::Globals::get()->{'storage'}->get_keys($address, $type)) { + next unless ($this_call_id eq (makeHash($addressi.$type.$key) % $send_every_n_calls)); print "ping calling $type, $address, $key\n" if Echolot::Config::get()->{'verbose'}; do_ping($type, $address, $key); } |