From 1db5b2560eaea302778680af3714d71e1fb0a4f0 Mon Sep 17 00:00:00 2001 From: Andrej Babic Date: Wed, 6 May 2020 16:45:19 +0200 Subject: [PATCH] Reduce nice level --- core-buffer/src/UdpRecvModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core-buffer/src/UdpRecvModule.cpp b/core-buffer/src/UdpRecvModule.cpp index a1b76ae..f811c9d 100644 --- a/core-buffer/src/UdpRecvModule.cpp +++ b/core-buffer/src/UdpRecvModule.cpp @@ -66,7 +66,7 @@ void UdpRecvModule::receive_thread(const uint16_t udp_port) pid_t tid; tid = syscall(SYS_gettid); - int ret = setpriority(PRIO_PROCESS, tid, -10); + int ret = setpriority(PRIO_PROCESS, tid, -20); if (ret == -1) throw runtime_error("cannot set nice"); UdpReceiver udp_receiver;