Updater: Clarify user counting docs.
There was a logical inversion in the section ("greater than or equal to" instead of "less than"), and it was overly wordy. Change-Id: Idbfd7ec1781318ebdc4b0f29ca29235a90cbb7c8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3448429 Auto-Submit: Joshua Pawlicki <waffles@chromium.org> Reviewed-by: Sorin Jianu <sorin@chromium.org> Commit-Queue: Sorin Jianu <sorin@chromium.org> Cr-Commit-Position: refs/heads/main@{#968361}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
2cffbbd190
commit
052bfa051d
@ -91,18 +91,17 @@ The Omaha protocol is anonymous, but allows servers to compute the number of
|
||||
unique active or update-checking devices. This is accomplished through
|
||||
client-regulated counting.
|
||||
|
||||
The idea of client-regulated counting is to inspect all update
|
||||
check requests received over the last N days and discard all but one from each
|
||||
The idea of client-regulated counting is to inspect all update check requests
|
||||
received over the last N days and discard all but the first request from each
|
||||
client. The number of remaining requests is equal to the number of unique
|
||||
clients.
|
||||
|
||||
Each response from the server contains a numeric date, representing the date (in
|
||||
the server's choice of timezone) that the client's request was received. The
|
||||
client stores this date, and sends it on the next request to the server. When
|
||||
inspecting this next request, the server can determine whether the date is
|
||||
greater than or equal to (current date - N). If so, this is the first request
|
||||
from the client in the N-day window. Otherwise, there is another request from
|
||||
this client in the N-day window and this request can be excluded from the count.
|
||||
inspecting the next request, the server can determine whether the date is before
|
||||
(current date - N + 1). If so, this is the first request from the client in the
|
||||
N-day window. Otherwise, this request is a "duplicate" and can be discarded.
|
||||
|
||||
In certain environments (for example, frequently re-imaged VMs in internet
|
||||
cafes), it is likely that the client may fail to update the date of the last
|
||||
|
Reference in New Issue
Block a user