aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/cacti/files/patch-scripts-ping.pl
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/cacti/files/patch-scripts-ping.pl')
-rw-r--r--net-mgmt/cacti/files/patch-scripts-ping.pl15
1 files changed, 8 insertions, 7 deletions
diff --git a/net-mgmt/cacti/files/patch-scripts-ping.pl b/net-mgmt/cacti/files/patch-scripts-ping.pl
index b39c35082f9a..f1a257f64976 100644
--- a/net-mgmt/cacti/files/patch-scripts-ping.pl
+++ b/net-mgmt/cacti/files/patch-scripts-ping.pl
@@ -1,10 +1,11 @@
---- cacti-0.8.6j/scripts/ping.pl.orig Sat Apr 15 22:26:44 2006
-+++ cacti-0.8.6j/scripts/ping.pl Sat Apr 15 22:27:16 2006
-@@ -1,6 +1,6 @@
- #!/usr/bin/perl
+--- cacti-0.8.7d/scripts/ping.pl.orig 2009-02-12 05:55:50.000000000 +0300
++++ cacti-0.8.7d/scripts/ping.pl 2009-02-16 17:01:59.000000000 +0300
+@@ -4,7 +4,7 @@
+ $host = $ARGV[0];
+ $host =~ s/tcp:/$1/gis;
--open(PROCESS, "ping -c 1 $ARGV[0] | grep icmp_seq |");
-+open(PROCESS, "/sbin/ping -c 1 $ARGV[0] | grep icmp_seq |");
+-open(PROCESS, "ping -c 1 $host | grep icmp_seq | grep time |");
++open(PROCESS, "/sbin/ping -c 1 $host | grep icmp_seq | grep time |");
$ping = <PROCESS>;
close(PROCESS);
- $ping =~ m/(.*time=)(.*) (ms|usec)/;
+ $ping =~ m/(.*time=)(.*) (ms|usec)/;