From f99d49546222d04b9be8405044b54299c5d89e3e Mon Sep 17 00:00:00 2001 From: Shannon Wynter Date: Mon, 18 Apr 2016 17:28:47 +1000 Subject: [PATCH] Run goimports before committing... --- process/process_linux.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/process/process_linux.go b/process/process_linux.go index adc06d3..75672a0 100644 --- a/process/process_linux.go +++ b/process/process_linux.go @@ -6,6 +6,7 @@ import ( "bytes" "encoding/json" "errors" + "fmt" "io/ioutil" "os" "path/filepath" @@ -551,7 +552,7 @@ func (p *Process) fillFromStatus() error { p.name = strings.Trim(value, " \t") case "State": p.status = value[0:1] - case "Ppid": + case "PPid", "Ppid": pval, err := strconv.ParseInt(value, 10, 32) if err != nil { return err