gizak / termui

Golang terminal dashboard
MIT License
13.23k stars 786 forks source link

changed data type to float #142

Closed AnirudhVyas closed 5 years ago

AnirudhVyas commented 7 years ago

ints truncate data when values are small enough, example when gauging cpu usage, unless there's some other way to accomplish this, sending a pull request, please let me know if that is acceptable.

AnirudhVyas commented 7 years ago

Please review and let me know if anything needs to change.

cjbassi commented 5 years ago

Thanks for the PR, I took inspiration from this when I was rewriting things. Should be working now as of 958a28575d7411492d25e42da3ad5a6e5947d9a4. The other widgets take float64 values now too.