From 1bbf4ec2b23584dfc5b2810b4b84573f5b451dd7 Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Sat, 18 Nov 2023 19:13:24 -0500 Subject: [PATCH] fix: freebsd peer analysis Signed-off-by: Chris Gianelloni --- main.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/main.go b/main.go index 5eb3263..cfb4c10 100644 --- a/main.go +++ b/main.go @@ -21,7 +21,6 @@ import ( "fmt" "net" "os" - "runtime" "sort" "strconv" "strings" @@ -1182,14 +1181,6 @@ func getPeerText(ctx context.Context) string { ) sb.WriteString(fmt.Sprintf("%s\n", strings.Repeat("-", width+1))) - // bail on FreeBSD due to missing connections support - if runtime.GOOS == "freebsd" { - sb.WriteString(fmt.Sprintf(" [yellow]%s[white]\n", - "FreeBSD peer analysis is currently unsupported", - )) - return fmt.Sprint(sb.String()) - } - // Get process in/out connections connections, err := processMetrics.ConnectionsWithContext(ctx) if err != nil {