MCPcopy Create free account
hub / github.com/microsoft/SandDance / ceiling

Function ceiling

docs/external/js/react-dom.development.js:11285–11287  ·  view source on GitHub ↗
(num, precision)

Source from the content-addressed store, hash-verified

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);

Callers 1

computeExpirationBucketFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected