summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--posix_api/psx_sched_report/psx_sched_report.c2
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 )