mirror of
https://github.com/shirou/gopsutil.git
synced 2025-04-26 13:48:59 +08:00
Run goimports before committing...
This commit is contained in:
parent
a4387d0c92
commit
f99d495462
@ -6,6 +6,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
@ -551,7 +552,7 @@ func (p *Process) fillFromStatus() error {
|
|||||||
p.name = strings.Trim(value, " \t")
|
p.name = strings.Trim(value, " \t")
|
||||||
case "State":
|
case "State":
|
||||||
p.status = value[0:1]
|
p.status = value[0:1]
|
||||||
case "Ppid":
|
case "PPid", "Ppid":
|
||||||
pval, err := strconv.ParseInt(value, 10, 32)
|
pval, err := strconv.ParseInt(value, 10, 32)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user