Skip to content

Commit

Permalink
fix log print cpu to curCPU (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jun10ng committed Aug 3, 2022
1 parent 8bfa326 commit 66a4f73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holmes.go
Expand Up @@ -762,7 +762,7 @@ func (h *Holmes) initEnvironment() {

func (h *Holmes) EnableDump(curCPU int) (err error) {
if h.opts.CPUMaxPercent != 0 && curCPU >= h.opts.CPUMaxPercent {
return fmt.Errorf("current cpu percent [%v] is greater than the CPUMaxPercent [%v]", cpu, h.opts.CPUMaxPercent)
return fmt.Errorf("current cpu percent [%v] is greater than the CPUMaxPercent [%v]", curCPU, h.opts.CPUMaxPercent)
}
return nil
}
Expand Down

0 comments on commit 66a4f73

Please sign in to comment.