mirror of
https://github.com/shirou/gopsutil.git
synced 2025-04-24 13:48:56 +08:00
fix: join path elements in case it contains spaces
This commit is contained in:
parent
33251d10ec
commit
a1f9e69b5d
@ -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…
x
Reference in New Issue
Block a user