samoshkin / tmux-plugin-sysstat

Prints CPU usage, memory & swap, load average, net I/O metrics in Tmux status bar
MIT License
157 stars 48 forks source link

Add option to trim floating points from CPU percentage #22

Open h0adp0re opened 3 years ago

h0adp0re commented 3 years ago

I have a relatively simple request, I'd like an option to trim floating points from CPU percentage as they add no value to me and make the percentage harder to read at times.

tuv7041 commented 3 years ago

This would be great, as the CPU output would be similar to the MEM output which doesn't seem to have floating points.

h0adp0re commented 3 years ago

Oh yeah, that's a good point. There are some inconsistencies:

It'd be nice to have some consistency, in addition to visual grepability. Or maybe it would be easier to remove floating points entirely from metrics displayed as percentages?

LFd3v commented 10 months ago

@h0adp0re @tuv7041

You may wanna take a look at https://github.com/samoshkin/tmux-plugin-sysstat/issues/8#issuecomment-1783944304.

Cheers

h0adp0re commented 10 months ago

Thanks for putting time into this! Alas, I've resorted to using https://github.com/tmux-plugins/tmux-cpu since. It has all I need and it's under the official organization, which is a small pseudo-guarantee.