diff options
Diffstat (limited to 'kamon-core/src')
-rw-r--r-- | kamon-core/src/main/scala/kamon/trace/Sampler.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kamon-core/src/main/scala/kamon/trace/Sampler.scala b/kamon-core/src/main/scala/kamon/trace/Sampler.scala index 9c6e5e63..2308d1d0 100644 --- a/kamon-core/src/main/scala/kamon/trace/Sampler.scala +++ b/kamon-core/src/main/scala/kamon/trace/Sampler.scala @@ -57,7 +57,7 @@ class OrderedSampler(interval: Int) extends Sampler { object OrderedSampler { implicit class EnhancedInt(i: Int) { - def isPowerOfTwo = !((i & (i - 1)) == 0) + def isPowerOfTwo = (i & (i - 1)) == 0 } implicit class EnhancedLong(dividend: Long) { |