Skip to content

Commit

Permalink
Merge pull request #107 from blinklabs-io/fix/freebsd-gopsutils
Browse files Browse the repository at this point in the history
fix: freebsd peer analysis
  • Loading branch information
wolf31o2 authored Dec 13, 2023
2 parents c5396f6 + 1bbf4ec commit e202a22
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 e202a22

Please sign in to comment.