Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Fix parse out the image name #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion process_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func (p *UnixProcess) Refresh() error {
// First, parse out the image name
data := string(dataBytes)
binStart := strings.IndexRune(data, '(') + 1
binEnd := strings.IndexRune(data[binStart:], ')')
binEnd := strings.IndexRune(data[binStart:], ' ') - 1
p.binary = data[binStart : binStart+binEnd]

// Move past the image name and start parsing the rest
Expand Down