diff options
author | ivan <ivan> | 2009-09-14 23:52:01 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-09-14 23:52:01 +0000 |
commit | 9ecb64360568b205334ae23e1051249cb56491b6 (patch) | |
tree | 3eab038020345f86de2eaccd4e198d0c6317c2d1 /FS | |
parent | 49fbd7cc643b1c474d9a6777dac512a24504a99d (diff) |
ping tool, RT#5845
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/Mason.pm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/FS/FS/Mason.pm b/FS/FS/Mason.pm index f71db208e..1918d9d36 100644 --- a/FS/FS/Mason.pm +++ b/FS/FS/Mason.pm @@ -52,6 +52,7 @@ Initializes the Mason environment, loads all Freeside and RT libraries, etc. 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 @@ Initializes the Mason environment, loads all Freeside and RT libraries, etc. 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; |