diff options
author | Diego <diegolparra@gmail.com> | 2014-12-05 15:24:02 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2014-12-05 15:24:02 -0300 |
commit | e828ee9f33c65063775a7b84da91d8e073b7600a (patch) | |
tree | bb7ac691957a2d58a029b6544181e990e26dfd75 /kamon-core/src/main/scala/kamon/trace | |
parent | 9cfbb4162a19ab35f0cd5263b789601df673581a (diff) | |
download | Kamon-e828ee9f33c65063775a7b84da91d8e073b7600a.tar.gz Kamon-e828ee9f33c65063775a7b84da91d8e073b7600a.tar.bz2 Kamon-e828ee9f33c65063775a7b84da91d8e073b7600a.zip |
= core: fix Sampler isPowerOfTwo
Diffstat (limited to 'kamon-core/src/main/scala/kamon/trace')
-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) { |