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

Commit d442304a authored by Harry Cutts's avatar Harry Cutts Committed by Android (Google) Code Review
Browse files

Merge "SlopController: fix formatting of logged values" into main

parents 3ffd1628 93145fb1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -54,13 +54,13 @@ float SlopController::consumeEvent(nsecs_t eventTimeNanos, float value) {
    mCumulativeValue += value;

    if (abs(mCumulativeValue) >= mSlopThreshold) {
        ALOGD("SlopController: did not drop event with value .%3f", value);
        ALOGD("SlopController: did not drop event with value %.3f", value);
        mHasSlopBeenMet = true;
        // Return the amount of value that exceeds the slop.
        return signOf(value) * (abs(mCumulativeValue) - mSlopThreshold);
    }

    ALOGD("SlopController: dropping event with value .%3f", value);
    ALOGD("SlopController: dropping event with value %.3f", value);
    return 0;
}