c9s/goprocinfo

[Question] MemInfo

novln opened this issue · 3 comments

Hi, I have some questions about MemInfo (linux/meminfo.go), and I hope you could answer them.

Originally, it was a struct but you changed it to a map : why ?
Do you need a contributor to implement this struct (since its the only "module" to store its data as a map) ? Or do you want to keep it as is ?

Thank you in advance.

c9s commented

I guess I encountered some parsing issue, therefore it's a map instead of a struct. but it will be nice if you can send a PR for the struct. :)

@november-eleven #17 changes MemInfo back into a struct and adds some more stats.

Thank you 👍