diff --git a/src/main/java/kieker/analysis/plugin/filter/sink/MemSwapUtilizationDisplayFilter.java b/src/main/java/kieker/analysis/plugin/filter/sink/MemSwapUtilizationDisplayFilter.java index cd366c514f393abe38a29601d12b02ed946b8d60..50b52d29974bbbaf636c8b93cbb66d68b5286199 100644 --- a/src/main/java/kieker/analysis/plugin/filter/sink/MemSwapUtilizationDisplayFilter.java +++ b/src/main/java/kieker/analysis/plugin/filter/sink/MemSwapUtilizationDisplayFilter.java @@ -35,12 +35,12 @@ import teetime.stage.basic.AbstractFilter; */ public class MemSwapUtilizationDisplayFilter extends AbstractFilter<MemSwapUsageRecord> { - private static final String MEM_FREE = "memFree"; - private static final String MEM_TOTAL = "memTotal"; - private static final String MEM_USED = "memUsed"; - private static final String SWAP_FREE = "swapFree"; - private static final String SWAP_TOTAL = "swapTotal"; - private static final String SWAP_USED = "swapUsed"; + static final String MEM_FREE = "memFree"; + static final String MEM_TOTAL = "memTotal"; + static final String MEM_USED = "memUsed"; + static final String SWAP_FREE = "swapFree"; + static final String SWAP_TOTAL = "swapTotal"; + static final String SWAP_USED = "swapUsed"; private final XYPlot xyplot; private final PieChart memPieChart; @@ -89,6 +89,7 @@ public class MemSwapUtilizationDisplayFilter extends AbstractFilter<MemSwapUsage final String id = record.getHostname(); + // Sets Entries in MB instead of Bytes this.xyplot.setEntry(id + " - " + MemSwapUtilizationDisplayFilter.MEM_FREE, minutesAndSeconds, record.getMemFree() / 1048576); this.xyplot.setEntry(id + " - " + MemSwapUtilizationDisplayFilter.MEM_TOTAL, minutesAndSeconds, record.getMemTotal() / 1048576); this.xyplot.setEntry(id + " - " + MemSwapUtilizationDisplayFilter.MEM_USED, minutesAndSeconds, record.getMemUsed() / 1048576);