From e50c450c4bea0e7f0fb1aa3f581491e1a94dcf4d Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 17 Jul 2002 02:34:48 +0000 Subject: Do not send all pings for the same remailer at the same time --- Echolot/Pinger.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Echolot') 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 -# $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); } -- cgit v1.2.3