Archived

This forum has been archived. Please start a new discussion on GitHub.

FreeBSD support for icegridnode - question regarding load

Hi,

icegridnode always returns "-1 -1 -1" as load under FreeBSD. As far as I can see this is because PlatformInfo.cpp is not checking for __FreeBSD__ anywhere. It also seems that the sysctl interface used for Mac OS X (ifdef __APPLE__) is exactly the same as for FreeBSD (afaik it's inherited from BSD). I modified PlatformInfo.cpp and ran some tests and it seems like everything is working as expected now. Maybe you might consider to apply the patch attached to this message in your next release.

regards
Michael