IEEE-VIT / termiboard

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

Implemented GetCpuUsage() function #10

Closed S-Maciejewski closed 4 years ago

S-Maciejewski commented 4 years ago

This pull request relates to the issue #6

The GetCpuUsage() method in cpu.go was implemented using gopsutil library's cpu.Percent function. The result is displayed by ResultPrinter function as a percentage of overall CPU usage.

Apologies for second PR, it seems that I still have some trouble finding my way around GitHub

S-Maciejewski commented 4 years ago

@DarthBenro008 This PR is now properly set up. I am sorry that I accidentally closed the previous one, hope everything is ok with this one.

DarthBenro008 commented 4 years ago

@S-Maciejewski LGTM! Just a small change, could you limit the output to two decimal places only, feel that would be great