csdr icon indicating copy to clipboard operation
csdr copied to clipboard

minor cleanups to make it more cross platform

Open VVelox opened this issue 5 years ago • 2 comments
trafficstars

Uses list_cpu_features instead to get CPU features. Calling /proc/cpuinfo is a bad linuxism as lots of systems don't use that.

Use /usr/bin/env to invoke python2 instead of staticly coding the path. This avoids relying on a system installing python2 /usr/bin.

VVelox avatar Feb 10 '20 05:02 VVelox

Also went and updated csdr.c to use CLOCK_MONOTONIC_FAST on FreeBSD.

VVelox avatar Feb 10 '20 06:02 VVelox

env_csdr_dynamic_bufsize_on is now set to 1 and setting the pipe size on FreeBSD is now #ifed out.

VVelox avatar Feb 10 '20 07:02 VVelox