(ms)
| 6782 | |
| 6783 | // 1 unit of expiration time represents 10ms. |
| 6784 | function msToExpirationTime(ms) { |
| 6785 | // Always add an offset so that we don't clash with the magic number for NoWork. |
| 6786 | return (ms / UNIT_SIZE | 0) + MAGIC_NUMBER_OFFSET; |
| 6787 | } |
| 6788 | |
| 6789 | function expirationTimeToMs(expirationTime) { |
| 6790 | return (expirationTime - MAGIC_NUMBER_OFFSET) * UNIT_SIZE; |
no outgoing calls
no test coverage detected