(num, precision)
| 11283 | } |
| 11284 | |
| 11285 | function ceiling(num, precision) { |
| 11286 | return ((num / precision | 0) + 1) * precision; |
| 11287 | } |
| 11288 | |
| 11289 | function computeExpirationBucket(currentTime, expirationInMs, bucketSizeMs) { |
| 11290 | return MAGIC_NUMBER_OFFSET - ceiling(MAGIC_NUMBER_OFFSET - currentTime + expirationInMs / UNIT_SIZE, bucketSizeMs / UNIT_SIZE); |
no outgoing calls
no test coverage detected