use full cmdline in case of proc renaming
This commit is contained in:
parent
a9c2f23bc2
commit
e2c79a1af7
|
@ -985,6 +985,8 @@ func (p *Process) fillFromStatusWithContext(ctx context.Context) error {
|
||||||
extendedName := filepath.Base(cmdlineSlice[0])
|
extendedName := filepath.Base(cmdlineSlice[0])
|
||||||
if strings.HasPrefix(extendedName, p.name) {
|
if strings.HasPrefix(extendedName, p.name) {
|
||||||
p.name = extendedName
|
p.name = extendedName
|
||||||
|
} else {
|
||||||
|
p.name = cmdlineSlice[0]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue