Skip to content

Commit

Permalink
fix: fix slice init length
Browse files Browse the repository at this point in the history
Signed-off-by: cuishuang <[email protected]>
  • Loading branch information
cuishuang committed Sep 27, 2024
1 parent 5a9cda1 commit 7d2078d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/evaluate/cgroups.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
func DumpCgroup() {

cgroupLst, err := util.GetCgroup(1)
sLst := make([]string, len(cgroupLst))
sLst := make([]string, 0, len(cgroupLst))

if err != nil {
log.Printf("/proc/1/cgroup error: %v\n", err)
Expand Down

0 comments on commit 7d2078d

Please sign in to comment.