(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:
Remi NGUYEN VAN
2018-11-15 11:23:38 +09:00
parent 1dd54da1f6
commit 2fd1499f6a

View File

@@ -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() {