Fix bug in parsing VirtualMachine.cpuUsed

This commit is contained in:
Richard Downer 2011-12-05 14:21:17 +02:00
parent da56c047a1
commit 6d657b1c90
1 changed files with 1 additions and 1 deletions

View File

@ -478,7 +478,7 @@ public class VirtualMachine implements Comparable<VirtualMachine> {
* @return the amount of the vm's CPU currently used
*/
public float getCpuUsed() {
return cpuUsed != null ? Float.parseFloat(cpuUsed.substring(9, cpuUsed.length() - 1)) : 0.0f;
return cpuUsed != null ? Float.parseFloat(cpuUsed.substring(0, cpuUsed.length() - 1)) : 0.0f;
}
/**