diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2015-01-28 04:52:41 +0100 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2015-01-28 04:52:41 +0100 |
commit | 6823284fb9aa88c25472fc1ddb89e4b1f9cf55ea (patch) | |
tree | 4d9d6e2d10a49120fd9032a198375b4673f545b6 /kamon-system-metrics/src/main/scala | |
parent | 7836b44f264e462028020cb1ac255bf16fed2415 (diff) | |
download | Kamon-6823284fb9aa88c25472fc1ddb89e4b1f9cf55ea.tar.gz Kamon-6823284fb9aa88c25472fc1ddb89e4b1f9cf55ea.tar.bz2 Kamon-6823284fb9aa88c25472fc1ddb89e4b1f9cf55ea.zip |
+ sysmetrics: calculate and reporte the buffers + cache system memory.
Diffstat (limited to 'kamon-system-metrics/src/main/scala')
-rw-r--r-- | kamon-system-metrics/src/main/scala/kamon/system/sigar/MemoryMetrics.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kamon-system-metrics/src/main/scala/kamon/system/sigar/MemoryMetrics.scala b/kamon-system-metrics/src/main/scala/kamon/system/sigar/MemoryMetrics.scala index 85d55862..23d95186 100644 --- a/kamon-system-metrics/src/main/scala/kamon/system/sigar/MemoryMetrics.scala +++ b/kamon-system-metrics/src/main/scala/kamon/system/sigar/MemoryMetrics.scala @@ -22,7 +22,7 @@ class MemoryMetrics(instrumentFactory: InstrumentFactory) extends GenericEntityR def update(sigar: Sigar): Unit = { val mem = sigar.getMem val swap = sigar.getSwap - val cachedMemory = if(mem.getActualFree > mem.getFree) mem.getActualFree - mem.getFree else 0L + val cachedMemory = if (mem.getActualFree > mem.getFree) mem.getActualFree - mem.getFree else 0L used.record(mem.getActualUsed) free.record(mem.getActualFree) |