wrapper: interpret priority value in cc_config.xml correctly

This commit is contained in:
David Anderson 2020-08-31 12:19:48 -07:00
parent f616edc60a
commit 1c257a1141
1 changed files with 2 additions and 2 deletions

View File

@ -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 {