Skip to content

Commit

Permalink
Merge pull request #105 from cuishuang/main
Browse files Browse the repository at this point in the history
fix(evaluate): fix slice init length
  • Loading branch information
neargle authored Nov 15, 2024
2 parents 5a9cda1 + 7d2078d commit bc9af97
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 bc9af97

Please sign in to comment.