diff options
author | eb | 2007-05-23 03:27:07 +0000 |
---|---|---|
committer | eb | 2007-05-23 03:27:07 +0000 |
commit | 7e24277efcd3589884170bdc0dcb4302b8262e97 (patch) | |
tree | 5ab7898b5301cbfacf15056694343b8fe1baa617 /gnuradio-core/src | |
parent | 1dd27f78f2ca518d361a97abed44b9eb0fd8167c (diff) | |
download | gnuradio-7e24277efcd3589884170bdc0dcb4302b8262e97.tar.gz gnuradio-7e24277efcd3589884170bdc0dcb4302b8262e97.tar.bz2 gnuradio-7e24277efcd3589884170bdc0dcb4302b8262e97.zip |
fix calculation of mid-pri for realtime_scheduling
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@5520 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core/src')
-rw-r--r-- | gnuradio-core/src/lib/runtime/gr_realtime.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnuradio-core/src/lib/runtime/gr_realtime.cc b/gnuradio-core/src/lib/runtime/gr_realtime.cc index a5b8b0477..a0aedfd8b 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; |