Skip to content

Commit

Permalink
Fix for Clocktest Failure (Bugfix) (#1434)
Browse files Browse the repository at this point in the history
Update  _SC_NPROCESSORS_CONF with _SC_NPROCESSORS_ONLN

    _SC_NPROCESSORS_CONF
    The number of processors configured. See also get_nprocs_conf(3).

    _SC_NPROCESSORS_ONLN
    The number of processors currently online (available). See also get_nprocs_conf(3).

    A Fix for issue #815
  • Loading branch information
mreed8855 authored Sep 11, 2024
1 parent 99f7a0c commit da49281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/base/src/clocktest.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ int test_clock_jitter(){
unsigned cpu, num_cpus, iter;
int failures = 0;

num_cpus = sysconf(_SC_NPROCESSORS_CONF);
num_cpus = sysconf(_SC_NPROCESSORS_ONLN);
if (num_cpus == 1) {
printf("Single CPU detected. No clock jitter testing necessary.\n");
return 0;
Expand Down

0 comments on commit da49281

Please sign in to comment.