GuillaumeGomez / sysinfo

Cross-platform library to fetch system information
MIT License
2.06k stars 306 forks source link

support cpu usage detail about system/user/idle/iowait #1082

Closed sasakiyori closed 1 year ago

sasakiyori commented 1 year ago

I guess because some systems do not support them so these infos are finally not exposed. I want to use this lib only on linux, so I don't want to read extra proc files to fill these metrics manually.

Is it acceptable to expose these getters for Cpu, and just return 0 for those unsupported systems?

GuillaumeGomez commented 1 year ago

Hi. Sorry but I aim to offer a unified API. If something is specific to one platform, then I'd rather not implement it.

sasakiyori commented 1 year ago

Alright. Thanks for your great job on this lib anyway!

GuillaumeGomez commented 1 year ago

Thanks for the kind words! Don't hesitate to fork the repository to add what you need so you don't have to do everything again by yourself.