diff --git a/samples/wrapper/wrapper.cpp b/samples/wrapper/wrapper.cpp index d3fafe1051..f826e96ff4 100644 --- a/samples/wrapper/wrapper.cpp +++ b/samples/wrapper/wrapper.cpp @@ -746,9 +746,9 @@ int TASK::run(int argct, char** argvt) { if (aid.no_priority_change) { priority_val = 0; } else { - if (aid.process_priority > 0) { + if (aid.process_priority >= 0) { // priority coming from the client is on scale where 0 is idle. - // for us, 1 is idle + // we use the scale where 1 is idle // priority_val = process_priority_value(aid.process_priority+1); } else {