summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-06-16 16:43:20 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-06-16 16:43:20 +0200
commit9f331253629a050adfd2b488f02705215d17083b (patch)
tree33956119662c5217e3afd1e7ee4a5bd2cc1bbd3b
parentdb7971565393852b21d547a37df23c0a0b49bf74 (diff)
Fix ekgping on systems where ping reports icmp_seq (used to assume icmp_req)
-rw-r--r--Changelog5
-rwxr-xr-xbin/ekgping2
2 files changed, 6 insertions, 1 deletions
diff --git a/Changelog b/Changelog
index 2ebbed5..9bacdee 100644
--- a/Changelog
+++ b/Changelog
@@ -1,3 +1,8 @@
+git HEAD
+
+ * Fix ping -n parser - apparently it was based on a buggy ping output.
+ See <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=609853>
+
ekgping 1.1 - Thu Jun 16 2011
* You can now run ekgping -f beepfile without having to run
diff --git a/bin/ekgping b/bin/ekgping
index 38e292b..f7a4368 100755
--- a/bin/ekgping
+++ b/bin/ekgping
@@ -60,7 +60,7 @@ sub parse_ping_output {
if (
$line =~ m{ ^ \d+ \s bytes \s from \s \S+ \s
- icmp_req = (?<id> \d+ ) \s
+ icmp_.eq = (?<id> \d+ ) \s
ttl = (?<ttl> \d+ ) \s
time = (?<time> [\d.]+) \s ms }x
)