Open aaronlna opened 6 years ago
This fixed the issue for me. Thank you!
Will this pr be merged?
brew install coreutils
gets me gstdbuf
installed.
And then CPU outputs ok.
@samoshkin please merge this
@samoshkin please consider merging this. Currently I (and probably many others) have resorted to using aaronlna/tmux-plugin-sysstat but it'd be nice to use the main project.
https://github.com/samoshkin/tmux-plugin-sysstat/issues/5
Environment
Problems
iostat
intervals are buffered-- even while usingstdbuf
-- until all intervals are complete. This makes thecpu_collect
script not update the statusline for TMUX as a refresh happens before all intervals are completed (ie. nothing gets written to the corresponding tmp file).Changes
g
prefixedgstdbuf
on OSX as to not require modifying the user PATH.iostat
per TMUX status line refresh.