X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gnuradio-core%2Fsrc%2Flib%2Fruntime%2Fgr_realtime.cc;fp=gnuradio-core%2Fsrc%2Flib%2Fruntime%2Fgr_realtime.cc;h=878411df296bb1291dcc3baf8f8a242c5af5df5f;hb=4f7dda1f147c22377c64e81ff11dd4cd5ccc6210;hp=a5b8b0477bb435f2b58c7b3338f1353352e8dbef;hpb=3dfdb4be27138fa1b85e6d33b40fd0dd2cdb3a4e;p=debian%2Fgnuradio diff --git a/gnuradio-core/src/lib/runtime/gr_realtime.cc b/gnuradio-core/src/lib/runtime/gr_realtime.cc index a5b8b047..878411df 100644 --- a/gnuradio-core/src/lib/runtime/gr_realtime.cc +++ b/gnuradio-core/src/lib/runtime/gr_realtime.cc @@ -6,7 +6,7 @@ * * GNU Radio is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) + * the Free Software Foundation; either version 3, or (at your option) * any later version. * * GNU Radio is distributed in the hope that it will be useful, @@ -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;