From 1001f550c0152c3422105bb7df9427dcc1d951d1 Mon Sep 17 00:00:00 2001 From: Peter Bourgon Date: Mon, 14 Sep 2015 15:55:38 +0200 Subject: [PATCH] Fix bad merge on Darwin --- probe/proc/reader_darwin.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/probe/proc/reader_darwin.go b/probe/proc/reader_darwin.go index c0546ebf7..456e60fb7 100644 --- a/probe/proc/reader_darwin.go +++ b/probe/proc/reader_darwin.go @@ -19,7 +19,6 @@ const ( lsofBinary = "lsof" lsofFields = "cn" // parseLSOF() depends on the order netstatBinary = "netstat" - lsofBinary = "lsof" ) func (reader) Processes(f func(Process)) error { @@ -81,7 +80,7 @@ func (r *reader) Connections(withProcs bool, f func(Connection)) error { strconv.Itoa(int(c.LocalPort)), ) if localAddr == local { - connections[i].Proc = proc + connections[i].Process = proc } } }