[freeside-commits] freeside/FS/FS Mason.pm,1.16,1.17
Ivan,,,
ivan at wavetail.420.am
Mon Sep 14 16:52:03 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv24976/FS/FS
Modified Files:
Mason.pm
Log Message:
ping tool, RT#5845
Index: Mason.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Mason.pm,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- Mason.pm 20 Aug 2009 09:47:05 -0000 1.16
+++ Mason.pm 14 Sep 2009 23:52:01 -0000 1.17
@@ -52,6 +52,7 @@
use Date::Format;
use Date::Parse;
use Time::Local;
+ use Time::HiRes;
use Time::Duration;
use DateTime;
use DateTime::Format::Strptime;
@@ -77,6 +78,17 @@
use Spreadsheet::WriteExcel;
use Business::CreditCard 0.30; #for mask-aware cardtype()
use NetAddr::IP;
+ use Net::Ping;
+ use Net::Ping::External;
+ #if CPAN #7815 ever gets fixed# if ( $Net::Ping::External::VERSION <= 0.12 ) {
+ eval 'sub Net::Ping::External::_ping_linux {
+ my %args = @_;
+ my $command = "ping -s $args{size} -c $args{count} -w $args{timeout} $args{host}";
+ return Net::Ping::External::_ping_system($command, 0);
+ }
+ ';
+ die $@ if $@;
+ #}
use String::Approx qw(amatch);
use Chart::LinesPoints;
use Chart::Mountain;
More information about the freeside-commits
mailing list