Skip to content

Commit 170352f

Browse files
Refine algorithm
1 parent 97f1f82 commit 170352f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

index.bs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4674,10 +4674,6 @@ To <dfn>queue reports for delivery</dfn> given a [=set=] of
46744674

46754675
1. Let |reportsToSend| be a new [=list=].
46764676
1. [=set/iterate|For each=] |report| of |cache|:
4677-
1. If |now| - |report|'s [=attribution report/trigger time=] is greater than
4678-
30 days:
4679-
1. [=set/Remove=] |report| from |cache|.
4680-
1. [=iteration/Continue=].
46814677
1. If |report|'s [=attribution report/report time=] is greater than the
46824678
[=current wall time=], [=iteration/continue=].
46834679
1. [=set/Remove=] |report| from |cache|.
@@ -4686,7 +4682,8 @@ To <dfn>queue reports for delivery</dfn> given a [=set=] of
46864682
forms of interruption, including shutdown, the user agent may need to
46874683
persist reports that are in the process of being sent in some other
46884684
storage.
4689-
1. [=list/Append=] |report| to |reportsToSend|.
4685+
1. If |now| - |report|'s [=attribution report/trigger time=] is less than or
4686+
equal to 30 days, [=list/Append=] |report| to |reportsToSend|.
46904687
1. [=shuffle a list|Shuffle=] |reportsToSend|.
46914688

46924689
Note: Shuffling ensures [=event-level reports=] for the same source with the same [=attribution report/report time=] are never sent

0 commit comments

Comments
 (0)