(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
This commit is contained in:
@@ -90,8 +90,8 @@ public class LingerMonitor {
|
|||||||
mNotifier = notifier;
|
mNotifier = notifier;
|
||||||
mDailyLimit = dailyLimit;
|
mDailyLimit = dailyLimit;
|
||||||
mRateLimitMillis = rateLimitMillis;
|
mRateLimitMillis = rateLimitMillis;
|
||||||
// Ensure that (now - mFirstNotificationMillis) >= rateLimitMillis at first
|
// Ensure that (now - mLastNotificationMillis) >= rateLimitMillis at first
|
||||||
mFirstNotificationMillis = -rateLimitMillis;
|
mLastNotificationMillis = -rateLimitMillis;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static HashMap<String, Integer> makeTransportToNameMap() {
|
private static HashMap<String, Integer> makeTransportToNameMap() {
|
||||||
|
|||||||
Reference in New Issue
Block a user