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

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

Merge "ApfFilter: use elapsedRealTime for RA lifetime"

parents 337f8fbd 305af8e9
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -283,10 +283,9 @@ public class ApfFilter {
        mReceiveThread.start();
    }

    // Returns seconds since Unix Epoch.
    // TODO: use SystemClock.elapsedRealtime() instead
    // Returns seconds since device boot.
    private static long curTime() {
        return System.currentTimeMillis() / DateUtils.SECOND_IN_MILLIS;
        return SystemClock.elapsedRealtime() / DateUtils.SECOND_IN_MILLIS;
    }

    public static class InvalidRaException extends Exception {