Skip to content

Commit

Permalink
Fixed issues with spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
zviRosenfeldRedis committed May 1, 2024
1 parent 6104636 commit 6da7d02
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
18 changes: 9 additions & 9 deletions cmd/process-exporter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,15 +241,15 @@ func main() {

pc, err := collector.NewProcessCollector(
collector.ProcessCollectorOption{
ProcFSPath: *procfsPath,
Children: *children,
Threads: *threads,
GatherSMaps: *smaps,
Namer: matchnamer,
Recheck: *recheck,
RecheckTimeLimit: *recheckTimeLimit,
Debug: *debug,
RemoveEmptyGroups: *removeEmptyGroups,
ProcFSPath: *procfsPath,
Children: *children,
Threads: *threads,
GatherSMaps: *smaps,
Namer: matchnamer,
Recheck: *recheck,
RecheckTimeLimit: *recheckTimeLimit,
Debug: *debug,
RemoveEmptyGroups: *removeEmptyGroups,
},
)
if err != nil {
Expand Down
18 changes: 9 additions & 9 deletions collector/process_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,15 @@ type (
}

ProcessCollectorOption struct {
ProcFSPath string
Children bool
Threads bool
GatherSMaps bool
Namer common.MatchNamer
Recheck bool
RecheckTimeLimit time.Duration
Debug bool
RemoveEmptyGroups bool
ProcFSPath string
Children bool
Threads bool
GatherSMaps bool
Namer common.MatchNamer
Recheck bool
RecheckTimeLimit time.Duration
Debug bool
RemoveEmptyGroups bool
}

NamedProcessCollector struct {
Expand Down
10 changes: 5 additions & 5 deletions proc/grouper.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ func lessThreads(x, y Threads) bool { return seq.Compare(x, y) < 0 }
// NewGrouper creates a grouper.
func NewGrouper(namer common.MatchNamer, trackChildren, trackThreads, recheck bool, recheckTimeLimit time.Duration, debug bool, removeEmptyGroups bool) *Grouper {
g := Grouper{
groupAccum: make(map[string]Counts),
threadAccum: make(map[string]map[string]Threads),
tracker: NewTracker(namer, trackChildren, recheck, recheckTimeLimit, debug),
debug: debug,
removeEmptyGroups: removeEmptyGroups,
groupAccum: make(map[string]Counts),
threadAccum: make(map[string]map[string]Threads),
tracker: NewTracker(namer, trackChildren, recheck, recheckTimeLimit, debug),
debug: debug,
removeEmptyGroups: removeEmptyGroups,
}
return &g
}
Expand Down
2 changes: 1 addition & 1 deletion proc/grouper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func TestGrouperProcJoin(t *testing.T) {
},
},
}

gr := NewGrouper(newNamer(n1), false, false, false, 0, false, false)
for i, tc := range tests {
got := rungroup(t, gr, procInfoIter(tc.procs...))
Expand Down

0 comments on commit 6da7d02

Please sign in to comment.