From: Stephen L Johnson Date: Wed, 26 Apr 2000 05:57:16 +0000 (+0000) Subject: fixed some logic problems in the alarm timeout code X-Git-Tag: spong-2_7-alpha5~5 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=323b9c48485e6cf92cdf1a94308f0a348a90a8e1;p=spong.git fixed some logic problems in the alarm timeout code --- diff --git a/src/lib/Spong/Network/plugins/check_ping b/src/lib/Spong/Network/plugins/check_ping index adedba3..66cb749 100755 --- a/src/lib/Spong/Network/plugins/check_ping +++ b/src/lib/Spong/Network/plugins/check_ping @@ -1,12 +1,6 @@ # Register the function the plugin registry $PLUGINS{'ping'} = \&check_ping; - -# Check to see if the Net::Ping module is installed - -eval "use Net::Ping;"; -if( ! $@ ) { $ping = 1; } else { $ping = 0; } - # This routine checks connectivity. It first trys to "ping" the machine via # a TCP echo using the Net::Ping module, if it can't reach it via that # mechanism, then it resorts to the command line ping program. Using the