summaryrefslogtreecommitdiff
path: root/plugins/service
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-04-19 21:00:11 +0300
committerValery Piashchynski <[email protected]>2021-04-19 21:00:11 +0300
commit779cc3f5aebb749ab4bc6190e03cc86ff3f151a0 (patch)
treed36dc3ce9a36fff1b15b8795e8fa08d397317d14 /plugins/service
parent885b65aa3964d68c63e46031e6c8b65a05a15be8 (diff)
- Add command information to the `./rr workers` info
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/service')
-rw-r--r--plugins/service/plugin.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/service/plugin.go b/plugins/service/plugin.go
index 91e47e86..b5608ff2 100644
--- a/plugins/service/plugin.go
+++ b/plugins/service/plugin.go
@@ -79,7 +79,7 @@ func (service *Plugin) Workers() []process.State {
defer service.Unlock()
states := make([]process.State, 0, len(service.processes))
for i := 0; i < len(service.processes); i++ {
- st, err := process.GeneralProcessState(service.processes[i].Pid)
+ st, err := process.GeneralProcessState(service.processes[i].Pid, service.processes[i].rawCmd)
if err != nil {
continue
}