ha7ilm / openwebrx

Open source, multi-user SDR receiver software with a web interface
https://sdr.hu/openwebrx
GNU Affero General Public License v3.0
991 stars 476 forks source link

Add support for MacOS X #30

Open ajmas opened 8 years ago

ajmas commented 8 years ago

Allow OpenWebRX to run on MacOS X. Currently the main blocker is the get_cpu_usage() function which is Linux specific. Just return -1 if '/proc/stat' is not found?

An alternative would be to make use of https://pypi.python.org/pypi/psutil ?

ha7ilm commented 8 years ago

Hi Andre,

I've made a workaround in commit 30e6dd97fae4b7f64f8e20fa87bdf9b3eb1b179c. I hope that it fixes the specific problem you mentioned. (Unfortunately, I do not have a Mac that I could use for testing.)

ajmas commented 8 years ago

Thanks I'll take a look when I have a few moments. I appreciate the limitations you have in testing and accept that Linux is going to be your main focus.