summaryrefslogtreecommitdiff
path: root/Echolot
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2002-07-17 02:34:48 +0000
committerPeter Palfrader <peter@palfrader.org>2002-07-17 02:34:48 +0000
commite50c450c4bea0e7f0fb1aa3f581491e1a94dcf4d (patch)
treeec5f96cb2ed8b72cbc8dcaf07149f1e028afe726 /Echolot
parent83be39e0ece2c4f2cb4916e427a7083868b1f3e2 (diff)
Do not send all pings for the same remailer at the same time
Diffstat (limited to 'Echolot')
-rw-r--r--Echolot/Pinger.pm6
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);
}