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

Commit f82a931f authored by Remi NGUYEN VAN's avatar Remi NGUYEN VAN
Browse files

(Really) fix LingerMonitor rate limiting

The previous patch was applied to the wrong member and did not actually
fix the issue.

Bug: b/117516272
Test: remote run passed
Change-Id: I3f9c27ebd6c339e98a71cb179b0be65950f9b864
parent 1fedd293
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -90,8 +90,8 @@ public class LingerMonitor {
        mNotifier = notifier;
        mDailyLimit = dailyLimit;
        mRateLimitMillis = rateLimitMillis;
        // Ensure that (now - mFirstNotificationMillis) >= rateLimitMillis at first
        mFirstNotificationMillis = -rateLimitMillis;
        // Ensure that (now - mLastNotificationMillis) >= rateLimitMillis at first
        mLastNotificationMillis = -rateLimitMillis;
    }

    private static HashMap<String, Integer> makeTransportToNameMap() {