Conky-for-macOS / conky-for-macOS

macOS port of the Light-weight system monitor for X.
https://github.com/Conky-for-macOS/conky-for-macOS/wiki
GNU General Public License v3.0
152 stars 9 forks source link

Conky loads but seems to have stuck #18

Closed npyl closed 6 years ago

npyl commented 6 years ago

Steps

Compile conky following Unix-Makefiles process Use default settings Run make install at the end

Result:

Conky starts, loads to the point that says conky: drawing to created window (0x600001) and stays there stuck. In activity monitor we notice excessive CPU usage.

matmunn commented 6 years ago

I also seem to have high CPU usage on macOS 10.13.5, having done make install.

It also happens regardless of using double_buffer or not.

npyl commented 6 years ago

The problem seems to reside in darwin.cc in get_top_info_for_kinfo_proc and specifically in the while-loop. I have amended the problem by adding a usleep() call with a minimum value of 500 usec.

Please check the latest commit.

EDIT: It should work fine for values higher than 0.5 sec as update interval for conky (with the -u option)

matmunn commented 6 years ago

Significant improvement for me, gone from 99.6% CPU usage to 2.9.

npyl commented 6 years ago

Thats great news! I think this can be closed now!