mirror of
https://github.com/datarhei/core.git
synced 2025-10-20 06:44:36 +08:00
Remove unused parameter
This commit is contained in:
@@ -703,7 +703,7 @@ func (p *process) start() error {
|
|||||||
|
|
||||||
p.pid = int32(p.cmd.Process.Pid)
|
p.pid = int32(p.cmd.Process.Pid)
|
||||||
|
|
||||||
if proc, err := psutil.NewProcess(p.pid, false); err == nil {
|
if proc, err := psutil.NewProcess(p.pid); err == nil {
|
||||||
p.limits.Start(proc)
|
p.limits.Start(proc)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -71,7 +71,7 @@ func (u *util) Process(pid int32) (Process, error) {
|
|||||||
return p, nil
|
return p, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewProcess(pid int32, limit bool) (Process, error) {
|
func NewProcess(pid int32) (Process, error) {
|
||||||
return DefaultUtil.Process(pid)
|
return DefaultUtil.Process(pid)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user