From 320340f881112fc6834e54a99951afb0803ad9c4 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 11 Jun 2002 10:08:19 +0000 Subject: Moved ping* values to config file --- Echolot/Pinger.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Echolot') diff --git a/Echolot/Pinger.pm b/Echolot/Pinger.pm index 0585ef8..cebfe05 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.1 2002/06/11 09:53:35 weasel Exp $ +# $Id: Pinger.pm,v 1.2 2002/06/11 10:08:19 weasel Exp $ # =pod @@ -69,8 +69,9 @@ sub do_ping($$$) { return 1; }; -sub send_pings($$) { - my ($call_intervall, $send_every_n_calls) = @_; +sub send_pings() { + my $call_intervall = Echolot::Config::get()->{'pinger_interval'} + my $send_every_n_calls = Echolot::Config::get()->{'ping_every_nth_time'} my $now = time(); -- cgit v1.2.3