Skip to content

Commit

Permalink
add --no-header when getting number of node connections
Browse files Browse the repository at this point in the history
  • Loading branch information
Eslam-Nawara committed Jan 9, 2025
1 parent e44237a commit 592eaa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/primitives/statistics.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ func (s *statsStream) ListGPUs() ([]pkg.GPUInfo, error) {
}

func (s *statsStream) openConnectionsCount() (int, error) {
cmd := exec.Command("/bin/sh", "-c", "ss -ptn state established | wc -l")
cmd := exec.Command("/bin/sh", "-c", "ss -tnH state established | wc -l")
out, err := cmd.Output()
if err != nil {
return 0, err
Expand Down

0 comments on commit 592eaa5

Please sign in to comment.