Skip to content
Snippets Groups Projects
Commit c2628d1f authored by Lars Erik Blümke's avatar Lars Erik Blümke
Browse files

Changed visibility of static constants to 'package' to make them accessible from test case

parent 4b705f1a
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment