From 328c98e9eabf07a1e3d735b80e231583b91cf5e4 Mon Sep 17 00:00:00 2001 From: Stefan Derkits Date: Wed, 22 May 2013 22:33:57 +0200 Subject: [PATCH] fix available Resources (they are maxsize - currsize, not maxsize - initialsize) --- src/at/ac/tuwien/lsdc/types/VirtualMachine.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/at/ac/tuwien/lsdc/types/VirtualMachine.java b/src/at/ac/tuwien/lsdc/types/VirtualMachine.java index 7c29471..5b2de93 100644 --- a/src/at/ac/tuwien/lsdc/types/VirtualMachine.java +++ b/src/at/ac/tuwien/lsdc/types/VirtualMachine.java @@ -75,15 +75,15 @@ public class VirtualMachine { } private int availableSize() { - return size - initialSize; + return size - getSize(); } private int availableRAM() { - return RAM - initialRAM; + return RAM - getRAM(); } private int availableCPU() { - return CPU - initialCPU; + return CPU - getCPU(); } public int getId() { -- 2.43.0