tmux-plugins / tmux-cpu

Plug and play cpu percentage and icon indicator for Tmux.
MIT License
426 stars 65 forks source link

doesn't print cpu usage on MacOSX. #4

Closed kiririmode closed 9 years ago

kiririmode commented 9 years ago

cpu_percentage.sh doesn't print cpu usage on my MacOSX. It always tries to use WMIC.

$ uname -a
Darwin Yuichi-no-MacBook-Pro.local 14.1.0 Darwin Kernel Version 14.1.0: Mon Dec 22 23:10:38 PST 2014; root:xnu-2782.10.72~2/RELEASE_X86_64 x86_64 i386 MacBookPro10,1 Darwin
$ ./cpu_percentage.sh
./cpu_percentage.sh: line 9: WMIC: command not found
  0.0%

I have confirmed fixed version prints cpu usage on cygwin and MacOSX.

ctjhoa commented 9 years ago

Oh you're right ! Sorry my bad. Thanks for de PR.