mirror of https://github.com/BOINC/boinc.git
wrapper: interpret priority value in cc_config.xml correctly
This commit is contained in:
parent
f616edc60a
commit
1c257a1141
|
@ -746,9 +746,9 @@ int TASK::run(int argct, char** argvt) {
|
||||||
if (aid.no_priority_change) {
|
if (aid.no_priority_change) {
|
||||||
priority_val = 0;
|
priority_val = 0;
|
||||||
} else {
|
} else {
|
||||||
if (aid.process_priority > 0) {
|
if (aid.process_priority >= 0) {
|
||||||
// priority coming from the client is on scale where 0 is idle.
|
// 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);
|
priority_val = process_priority_value(aid.process_priority+1);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue