Merge branch 'master' of ssh://gitea.digitalcircle.com.br:2222/open/replaycli-go

master
Pedro de Oliveira Guedes 2021-12-09 10:33:27 -03:00
commit 0b006b8243
1 changed files with 2 additions and 2 deletions

View File

@ -527,12 +527,12 @@ func (c *Cli) ProcExec(cmd string) 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
}
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
}