Merge "Fix LingerMonitor notification rate limiting"
This commit is contained in:
commit
822d2b5991
1 changed files with 2 additions and 0 deletions
|
|
@ -90,6 +90,8 @@ public class LingerMonitor {
|
|||
mNotifier = notifier;
|
||||
mDailyLimit = dailyLimit;
|
||||
mRateLimitMillis = rateLimitMillis;
|
||||
// Ensure that (now - mFirstNotificationMillis) >= rateLimitMillis at first
|
||||
mFirstNotificationMillis = -rateLimitMillis;
|
||||
}
|
||||
|
||||
private static HashMap<String, Integer> makeTransportToNameMap() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue