Commit 6f1bcf88 6f1bcf885f412146516ca337ac584de754fa7786 by WFLG

Fixat lite fel, getData och getMetrics funkar nu från OraMon. Graph blir

dock helt tom.
1 parent 21aac603
......@@ -128,28 +128,40 @@ public class OraMon {
return cpuTime.getSeconds()*numCpus;
}
public double getCPUAvailableSeconds(String pdbName) throws Throwable {
if(pdbName != null)
return colPdbCPU.getSeconds(pdbName + strCpuTime)*numCpus;
else
return getCPUAvailableSeconds();
}
public long getCPURawValue() throws Throwable {
return cpuTime.getCurrentValue();
}
public long getCPURawValue(String pdbName) throws Throwable {
if(pdbName != null)
return colPdbCPU.getCurrentValue(pdbName + strCpuTime);
else
return getCPURawValue();
}
public long getCPURawDiff() throws Throwable {
return cpuTime.getDelta();
}
public long getCPURawDiff(String pdbName) throws Throwable {
if(pdbName != null)
return colPdbCPU.getDelta(pdbName + strCpuTime);
else
return getCPURawDiff();
}
public double getCPUTimePerSecond() throws Throwable {
return cpuTime.getPerSecondValue();
}
public double getCPUTimePerSecond(String pdbName) throws Throwable {
if(pdbName != null)
return colPdbCPU.getPerSecValue(pdbName + strCpuTime);
else
return getCPUTimePerSecond();
}
public double getPerSecondValue(String name) throws Throwable {
......