Skip to content

Commit

Permalink
Fixing static analysis problems
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
  • Loading branch information
Maciej "Iwan" Iwanowski committed Mar 17, 2020
1 parent 71e90c5 commit 8d6324b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions perf/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import (
)

type collector struct {
cgroupPath string
events Events
cgroupPath string
events Events
fileDescriptors []int
}

Expand All @@ -44,7 +44,7 @@ func (c *collector) setup() error {
config := &unix.PerfEventAttr{
Type: event.Type,
Config: event.Config[0],
Size: size,
Size: size,
}
if length >= 2 {
config.Ext1 = event.Config[1]
Expand Down

0 comments on commit 8d6324b

Please sign in to comment.