elastic / gosigar

Gathers system and per process statistics
Apache License 2.0
105 stars 76 forks source link

fix odd array to string function #141

Closed fearful-symmetry closed 4 years ago

fearful-symmetry commented 4 years ago

This is a perma-fix for https://github.com/elastic/gosigar/issues/138

Tested manually on Darwin. This is a really odd chunk of code I had to remove. My best guess is that whoever wrote this was more familiar with C than Golang, hence that oddball pointer logic.

Also cleaned up some of the darwin code, since it was really annoying.