summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Crowley <paulcrowley@google.com>2018-06-18 06:17:20 -0700
committerandroid-build-merger <android-build-merger@google.com>2018-06-18 06:17:20 -0700
commit9b2c199d86d2fa7596aa7343d14b57aaf68bd2c8 (patch)
treeea1d5b4b1d7d277421f5f3a264eacff69b5cfa62
parentacdbc8688e23b39ff311b4b554be3547a47245a3 (diff)
parentdbaeceaedcfe54da92001b35d10acbdcc3c37b9f (diff)
downloadgatekeeper-9b2c199d86d2fa7596aa7343d14b57aaf68bd2c8.tar.gz
Fix comment on gatekeeper retry timeout schedule. am: 8fbcf80f8e am: c5bf61b359
am: dbaeceaedc Change-Id: I3a60fab023f43095a1b00ab875397baf63c8d8f1
-rw-r--r--gatekeeper.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/gatekeeper.cpp b/gatekeeper.cpp
index 0d19816..052c4db 100644
--- a/gatekeeper.cpp
+++ b/gatekeeper.cpp
@@ -254,11 +254,11 @@ void GateKeeper::MintAuthToken(UniquePtr<uint8_t> *auth_token, uint32_t *length,
* Calculates the timeout in milliseconds as a function of the failure
* counter 'x' as follows:
*
- * [0. 5) -> 0
+ * [0, 4] -> 0
* 5 -> 30
- * [6, 10) -> 0
- * [11, 30) -> 30
- * [30, 140) -> 30 * (2^((x - 30)/10))
+ * [6, 10] -> 0
+ * [11, 29] -> 30
+ * [30, 139] -> 30 * (2^((x - 30)/10))
* [140, inf) -> 1 day
*
*/