samoshkin / tmux-plugin-sysstat

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

cpu.sh returns incorrect results on macOS with multiple disk drives #2

Closed RafalLukawiecki closed 6 years ago

RafalLukawiecki commented 6 years ago

...because it reads the wrong column:

screen shot 2017-12-11 at 13 34 26 screen shot 2017-12-11 at 13 34 54

and shows (on an idle system):

screen shot 2017-12-11 at 13 35 18

PR on its way.

samoshkin commented 6 years ago

Yeah, just noticed the same issue yesterday, when plug my USB stick. Seems, needs get rid of $6th column, and take Nth column from the end, rather than from beginning. Or limit the output to single disk only. Will fix it soon. @RafalLukawiecki Thank you for you involvement.

RafalLukawiecki commented 6 years ago

You are welcome. See PR #3

samoshkin commented 6 years ago

Yeah, that's what I meant. :) Merged.