segmentio / stats

Go package for abstracting stats collection
https://godoc.org/github.com/segmentio/stats
MIT License
208 stars 32 forks source link

fix procstats (2): comparing apples and potatoes #60

Closed achille-roussel closed 7 years ago

achille-roussel commented 7 years ago

Note sure what I had in mind earlier... I was probably distracted. The change I made wasn't comparing to the last accumulated value for counters but to the last delta, which was meaningless.

Fixing this here.