IEEE-VIT / termiboard

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

[Feature] Improve readability of Ram Available and Disk Available output #14

Closed S-Maciejewski closed 3 years ago

S-Maciejewski commented 3 years ago

Please describe the feature you want this project to offer Available RAM and disk space are now just a plain number - they are difficult to read. They should be showing the amount in GB

Describe the solution you'd like The values should be displayed in GB, limited to 2 decimal places

DarthBenro008 commented 3 years ago

Yes, you are right, make sure to handle mb also. Please proceed with the issue @S-Maciejewski

S-Maciejewski commented 3 years ago

There will be additional function for formatting the number of bytes into readable string. Do we also want a unit test for such method in the scope of this issue?

DarthBenro008 commented 3 years ago

@S-Maciejewski a unit test is always preferred , feel free to add the additional function!

S-Maciejewski commented 3 years ago

Such function is now implemented in PR #20

It handles a range from bytes to petabytes and is unit tested