diff options
author | Joel Sherrill <joel@rtems.org> | 2023-04-23 15:41:32 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2023-04-23 18:37:25 -0500 |
commit | 5de109b64039b470717eef69f2787cb71d6bb709 (patch) | |
tree | ba21537d9fd3de63b21e26f89465275f9d449320 | |
parent | led/wscript: POSIX threads does not require POSIX enabled (diff) | |
download | rtems-examples-5de109b64039b470717eef69f2787cb71d6bb709.tar.bz2 |
psx_sched_report/psx_sched_report.c: Do not assume pid=1
-rw-r--r-- | posix_api/psx_sched_report/psx_sched_report.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/posix_api/psx_sched_report/psx_sched_report.c b/posix_api/psx_sched_report/psx_sched_report.c index b0381aa..ec0530c 100644 --- a/posix_api/psx_sched_report/psx_sched_report.c +++ b/posix_api/psx_sched_report/psx_sched_report.c @@ -25,7 +25,7 @@ void print_sched_info( printf( "Information on %s\n", s ); min = sched_get_priority_min( policy ); max = sched_get_priority_max( policy ); - (void) sched_rr_get_interval( 1, &t ); + (void) sched_rr_get_interval( getpid(), &t ); levels = abs(max - min + 1); printf( "\tSupports %d priority levels (%d - %d)\n", levels, min, max ); if ( levels >= 32 ) |