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

Commit aec96b79 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Handle price vs ctp inversion." into tm-dev

parents 44738ca8 43321f13
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -146,8 +146,11 @@ class ProcessStateModifier extends Modifier {
                return 0;
            case PROC_STATE_BUCKET_FGS:
                // Can't get notification priority. Just use CTP for now.
                return ctp;
                return Math.min(ctp, price);
            case PROC_STATE_BUCKET_BFGS:
                if (price <= ctp) {
                    return price;
                }
                return (long) (ctp + .5 * (price - ctp));
            case PROC_STATE_BUCKET_BG:
            default: