Skip to content

Commit

Permalink
fix: freebsd peer analysis
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gianelloni <[email protected]>
  • Loading branch information
wolf31o2 committed Dec 13, 2023
1 parent c5396f6 commit 1bbf4ec
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"fmt"
"net"
"os"
"runtime"
"sort"
"strconv"
"strings"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 1bbf4ec

Please sign in to comment.