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

Commit 4f292d21 authored by Sudheer Shanka's avatar Sudheer Shanka Committed by Automerger Merge Worker
Browse files

Merge "Response stats:counts are not updated sometimes" into main am: 417dae88

parents b1ab9eca 417dae88
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -181,7 +181,7 @@ class BroadcastResponseStatsTracker {
                // We only need to look at the broadcast events that occurred before
                // We only need to look at the broadcast events that occurred before
                // this notification related event.
                // this notification related event.
                while (dispatchTimestampsMs.size() > 0
                while (dispatchTimestampsMs.size() > 0
                        && dispatchTimestampsMs.peekFirst() < timestampMs) {
                        && dispatchTimestampsMs.peekFirst() <= timestampMs) {
                    final long dispatchTimestampMs = dispatchTimestampsMs.peekFirst();
                    final long dispatchTimestampMs = dispatchTimestampsMs.peekFirst();
                    final long elapsedDurationMs = timestampMs - dispatchTimestampMs;
                    final long elapsedDurationMs = timestampMs - dispatchTimestampMs;
                    // Only increment the counts if the broadcast was sent not too long ago, as
                    // Only increment the counts if the broadcast was sent not too long ago, as