Merge pull request #3 from audebert/master
Update example
Julius Volz
9 years ago
21 | 21 | // "fmt" |
22 | 22 | // "log" |
23 | 23 | // |
24 | // "github.com/prometheus/client_golang/procfs" | |
24 | // "github.com/prometheus/procfs" | |
25 | 25 | // ) |
26 | 26 | // |
27 | 27 | // func main() { |
30 | 30 | // log.Fatalf("could not get process: %s", err) |
31 | 31 | // } |
32 | 32 | // |
33 | // stat, err := p.Stat() | |
33 | // stat, err := p.NewStat() | |
34 | 34 | // if err != nil { |
35 | 35 | // log.Fatalf("could not get process stat: %s", err) |
36 | 36 | // } |