minor from clang-tidy

This commit is contained in:
Erik Frojdh
2020-02-04 10:36:03 +01:00
parent b9446f40d1
commit 40bfca588b
4 changed files with 9 additions and 15 deletions

View File

@ -66,7 +66,7 @@ void ThreadObject::SetThreadPriority(int priority) {
struct sched_param param;
param.sched_priority = priority;
if (pthread_setschedparam(threadObject->native_handle(), SCHED_FIFO, &param) == EPERM) {
if (!index) {
if (index == 0) {
FILE_LOG(logWARNING) << "Could not prioritize " << type << " thread. "
"(No Root Privileges?)";
}