# | Line 98 | Line 98 | public enum TimeUnit { | |
---|---|---|
98 | TimeUnit(long scale) { | |
99 | this.scale = scale; | |
100 | this.maxNanos = Long.MAX_VALUE / scale; | |
101 | < | long r = (scale >= MILLI_SCALE ? scale / MILLI_SCALE : |
102 | < | MILLI_SCALE / scale); |
101 | > | long r = (scale >= MILLI_SCALE) |
102 | > | ? scale / MILLI_SCALE |
103 | > | : MILLI_SCALE / scale; |
104 | this.millisRatio = r; | |
105 | this.maxMillis = Long.MAX_VALUE / r; | |
106 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |