fix: join path elements in case it contains spaces

pull/1691/head
Pierre Gimalac 7 months ago
parent 33251d10ec
commit a1f9e69b5d
No known key found for this signature in database

@ -400,7 +400,7 @@ func (p *Process) MemoryMapsWithContext(ctx context.Context, grouped bool) (*[]M
getBlock := func(firstLine []string, block []string) (MemoryMapsStat, error) {
m := MemoryMapsStat{}
if len(firstLine) >= 6 {
m.Path = firstLine[5]
m.Path = strings.Join(firstLine[5:], " ")
}
for _, line := range block {

Loading…
Cancel
Save