diff options
author | Diego <diegolparra@gmail.com> | 2014-07-25 20:40:12 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2014-07-25 20:40:12 -0300 |
commit | 9b9484380d508e24afdbcae0bbdf0b76215aedee (patch) | |
tree | 54e00d7b593b5e63f016a6e305dba11ed9d36ea1 /kamon-system-metrics/src/main/scala/kamon/system/sigar/SigarLoader.scala | |
parent | ef5e1c0de024c4d768b202754045dcfc4843b0d8 (diff) | |
download | Kamon-9b9484380d508e24afdbcae0bbdf0b76215aedee.tar.gz Kamon-9b9484380d508e24afdbcae0bbdf0b76215aedee.tar.bz2 Kamon-9b9484380d508e24afdbcae0bbdf0b76215aedee.zip |
= kamon-system-metrics: collector actor refactor
Diffstat (limited to 'kamon-system-metrics/src/main/scala/kamon/system/sigar/SigarLoader.scala')
-rw-r--r-- | kamon-system-metrics/src/main/scala/kamon/system/sigar/SigarLoader.scala | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/kamon-system-metrics/src/main/scala/kamon/system/sigar/SigarLoader.scala b/kamon-system-metrics/src/main/scala/kamon/system/sigar/SigarLoader.scala index 0c78504e..e78c71f4 100644 --- a/kamon-system-metrics/src/main/scala/kamon/system/sigar/SigarLoader.scala +++ b/kamon-system-metrics/src/main/scala/kamon/system/sigar/SigarLoader.scala @@ -19,10 +19,9 @@ package kamon.system.sigar import java.io._ import java.util import java.util.logging.Logger -import java.util.{ ArrayList, List } +import java.util.{ArrayList, List} -import kamon.system.SynchronizedSigar -import org.hyperic.sigar.SigarProxy +import org.hyperic.sigar.{Sigar, SigarProxy} import scala.annotation.tailrec import scala.collection.JavaConversions._ @@ -47,7 +46,7 @@ object SigarLoader { attachToLibraryPath(tmpDir) try { - val sigar = new SynchronizedSigar() + val sigar = new Sigar() sigar.getPid sigar } catch { |