IEEE-VIT / termiboard

A smart CLI Dashboard to fetch cpu, memory and network stats!
MIT License
35 stars 16 forks source link

[Feature] Show CPU Usage #6

Closed DarthBenro008 closed 3 years ago

DarthBenro008 commented 3 years ago

Please describe the feature you want this project to offer Show CPU Usage at termiboard execution in percentage.

Describe the solution you'd like Implementation of GetCpuUsage() in ``cpu.go``` file.

Describe alternatives you've considered (Optional) You can leverage the gopsutil library.

S-Maciejewski commented 3 years ago

You can assign me to it, I want to give it a try :)

DarthBenro008 commented 3 years ago

Sure @S-Maciejewski , best of luck ! :)

S-Maciejewski commented 3 years ago

Should this be an overall value, or separate for each CPU? We could display it as a small ASCII table displayed by ResultPrinter

DarthBenro008 commented 3 years ago

@S-Maciejewski the purpose of termiboard is to give instant stats of most hardware with one command, so it should be an overall value of cpu usage, however feel free to create a another function and make it print an ASCII table(core-wise usage), but for the scope of this issue , we require an overall value.