@Test public void getUnusedMemoryPercWhenThereIsOverload() { assertEquals(0, new ServerLoad(0.1, 1.2, 0.1).getUnusedRamPerc(), DELTA_DOUBLE_COMP); }
public double getUnusedRamPerc() { return ramLoad > 1 ? 0 : (1 - ramLoad); }
ServerLoad { public double getUnusedRamPerc() { return ramLoad > 1 ? 0 : (1 - ramLoad); } }
ServerLoad { public double getUnusedRamPerc() { return ramLoad > 1 ? 0 : (1 - ramLoad); } ServerLoad(double cpuLoad, double ramLoad, double diskLoad); }
ServerLoad { public double getUnusedRamPerc() { return ramLoad > 1 ? 0 : (1 - ramLoad); } ServerLoad(double cpuLoad, double ramLoad, double diskLoad); double getTotalOverload(); double getCpuLoad(); double getRamLoad(); double getDiskLoad(); double getUnusedCpuPerc(); double getUnusedRamPerc(); double getUnusedDiskPerc(); @Override String toString(); boolean isIdle(); }
ServerLoad { public double getUnusedRamPerc() { return ramLoad > 1 ? 0 : (1 - ramLoad); } ServerLoad(double cpuLoad, double ramLoad, double diskLoad); double getTotalOverload(); double getCpuLoad(); double getRamLoad(); double getDiskLoad(); double getUnusedCpuPerc(); double getUnusedRamPerc(); double getUnusedDiskPerc(); @Override String toString(); boolean isIdle();  }