Merge "fix swapped min / max in priority parsing" am: 557359863c am: ec2d5d8f04 am: ca2714b02a
am: 18c26bcc1d
Change-Id: I4796f2eba128fa44f24d90958a1bcc3d9253cda1
This commit is contained in:
commit
baf45acfc0
1 changed files with 2 additions and 2 deletions
|
|
@ -357,8 +357,8 @@ bool Service::ParseGroup(const std::vector<std::string>& args, std::string* err)
|
|||
bool Service::ParsePriority(const std::vector<std::string>& args, std::string* err) {
|
||||
priority_ = 0;
|
||||
if (!ParseInt(args[1], &priority_,
|
||||
static_cast<int>(ANDROID_PRIORITY_LOWEST),
|
||||
static_cast<int>(ANDROID_PRIORITY_HIGHEST))) {
|
||||
static_cast<int>(ANDROID_PRIORITY_HIGHEST), // highest is negative
|
||||
static_cast<int>(ANDROID_PRIORITY_LOWEST))) {
|
||||
*err = StringPrintf("process priority value must be range %d - %d",
|
||||
ANDROID_PRIORITY_HIGHEST, ANDROID_PRIORITY_LOWEST);
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue