Merge branch 'master' of ssh://gitea.digitalcircle.com.br:2222/open/replaycli-go
commit
0b006b8243
|
@ -527,12 +527,12 @@ func (c *Cli) ProcExec(cmd string) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Cli) ProcName(pid int) (ret string, err error) {
|
func (c *Cli) ProcName(pid int) (ret string, err error) {
|
||||||
err = c.HttpCli().JsonGet(fmt.Sprintf("/ipc/wingui/proc/name?cmd=%d", pid), &ret)
|
err = c.HttpCli().JsonGet(fmt.Sprintf("/ipc/wingui/proc/name?pid=%d", pid), &ret)
|
||||||
return ret, err
|
return ret, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Cli) ProcPath(pid int) (ret string, err error) {
|
func (c *Cli) ProcPath(pid int) (ret string, err error) {
|
||||||
err = c.HttpCli().JsonGet(fmt.Sprintf("/ipc/wingui/proc/path?cmd=%d", pid), &ret)
|
err = c.HttpCli().JsonGet(fmt.Sprintf("/ipc/wingui/proc/path?pid=%d", pid), &ret)
|
||||||
return ret, err
|
return ret, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue