From: eb Date: Wed, 23 May 2007 03:27:07 +0000 (+0000) Subject: fix calculation of mid-pri for realtime_scheduling X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=7e24277efcd3589884170bdc0dcb4302b8262e97;p=debian%2Fgnuradio fix calculation of mid-pri for realtime_scheduling git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@5520 221aa14e-8319-0410-a670-987f0aec2ac5 --- 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;