From 7e24277efcd3589884170bdc0dcb4302b8262e97 Mon Sep 17 00:00:00 2001 From: eb Date: Wed, 23 May 2007 03:27:07 +0000 Subject: [PATCH] fix calculation of mid-pri for realtime_scheduling git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@5520 221aa14e-8319-0410-a670-987f0aec2ac5 --- gnuradio-core/src/lib/runtime/gr_realtime.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnuradio-core/src/lib/runtime/gr_realtime.cc b/gnuradio-core/src/lib/runtime/gr_realtime.cc index a5b8b047..a0aedfd8 100644 --- a/gnuradio-core/src/lib/runtime/gr_realtime.cc +++ b/gnuradio-core/src/lib/runtime/gr_realtime.cc @@ -39,7 +39,7 @@ gr_rt_status_t gr_enable_realtime_scheduling() { int policy = SCHED_FIFO; - int pri = (sched_get_priority_max (policy) - sched_get_priority_min (policy)) / 2; + int pri = (sched_get_priority_max (policy) + sched_get_priority_min (policy)) / 2; int pid = 0; // this process struct sched_param param; -- 2.47.2