Skip to content

Commit 74719bd

Browse files
Merge pull request #42 from Random-Liu/expose-parsePSOutput
Expose parsePSOutput.
2 parents 301f7c1 + fdf39b3 commit 74719bd

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

runc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ func (r *Runc) Top(context context.Context, id string, psOptions string) (*TopRe
411411
return nil, fmt.Errorf("%s: %s", err, data)
412412
}
413413

414-
topResults, err := parsePSOutput(data)
414+
topResults, err := ParsePSOutput(data)
415415
if err != nil {
416416
return nil, fmt.Errorf("%s: ", err)
417417
}

utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ func fieldsASCII(s string) []string {
7373
return strings.FieldsFunc(s, fn)
7474
}
7575

76-
// parsePSOutput parses the runtime's ps raw output and returns a TopResults
77-
func parsePSOutput(output []byte) (*TopResults, error) {
76+
// ParsePSOutput parses the runtime's ps raw output and returns a TopResults
77+
func ParsePSOutput(output []byte) (*TopResults, error) {
7878
topResults := &TopResults{}
7979

8080
lines := strings.Split(string(output), "\n")

0 commit comments

Comments
 (0)