Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18c26bcc authored by Keun-young Park's avatar Keun-young Park Committed by android-build-merger
Browse files

Merge "fix swapped min / max in priority parsing" am: 55735986 am: ec2d5d8f

am: ca2714b0

Change-Id: I3091ec4046b5d36d8b5ee0359a97a1ed0e0bed9e
parents b747b42e ca2714b0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;