summaryrefslogtreecommitdiff
path: root/net-mgmt/mrtg-ping-probe/files/patch-mrtg-ping-probe
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/mrtg-ping-probe/files/patch-mrtg-ping-probe')
-rw-r--r--net-mgmt/mrtg-ping-probe/files/patch-mrtg-ping-probe17
1 files changed, 17 insertions, 0 deletions
diff --git a/net-mgmt/mrtg-ping-probe/files/patch-mrtg-ping-probe b/net-mgmt/mrtg-ping-probe/files/patch-mrtg-ping-probe
new file mode 100644
index 000000000000..600a64ec2fc9
--- /dev/null
+++ b/net-mgmt/mrtg-ping-probe/files/patch-mrtg-ping-probe
@@ -0,0 +1,17 @@
+--- mrtg-ping-probe.orig 2003-09-14 03:20:24.000000000 +0900
++++ mrtg-ping-probe 2009-03-10 08:01:20.000000000 +0900
+@@ -1,4 +1,4 @@
+-#!/bin/perl
++#!%%PERL%%
+ ##################################################################
+ # @(#) $Id: mrtg-ping-probe,v 2.5 2003/09/13 18:04:29 pwo Exp $
+ # @(#) mrtg-ping-probe release $Name: Release_2_2_0 $
+@@ -284,7 +284,7 @@
+
+ # try to find packet loss
+ # ToDo: only if requested?)
+- if ($ping_output =~ m@(\d+)% (?:packet )?loss(?:$|,)@m) {
++ if ($ping_output =~ m@(\d+(?:\.\d+)?)% (?:packet )?loss(?:$|,)@m) {
+ # Unix
+ $pt{loss} = $1;
+ }