mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 01:31:17 +00:00
Only conntrack tcp connections to reduce cpu load from xml marshalling.
This commit is contained in:
@@ -105,7 +105,7 @@ var ConntrackModulePresent = func() bool {
|
||||
|
||||
// NB this is not re-entrant!
|
||||
func (c *Conntracker) run(args ...string) {
|
||||
args = append([]string{"-E", "-o", "xml"}, args...)
|
||||
args = append([]string{"-E", "-o", "xml", "-p", "tcp"}, args...)
|
||||
cmd := exec.Command("conntrack", args...)
|
||||
stdout, err := cmd.StdoutPipe()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user