mirror of https://github.com/apache/cloudstack.git
bug 10947: apply patch from Maurits; status 10947: resolved fixed
This commit is contained in:
parent
510ec31d0c
commit
d80f91a80c
|
|
@ -3473,10 +3473,15 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
|
|||
}
|
||||
|
||||
if (oldStats != null) {
|
||||
stats.setNetworkReadKBs((rx - oldStats._rx)/1000);
|
||||
stats.setNetworkWriteKBs((tx - oldStats._tx)/1000);
|
||||
long deltarx = rx - oldStats._rx;
|
||||
if (deltarx > 0)
|
||||
stats.setNetworkReadKBs(deltarx / 1000);
|
||||
long deltatx = tx - oldStats._tx;
|
||||
if (deltatx > 0)
|
||||
stats.setNetworkWriteKBs(deltatx / 1000);
|
||||
}
|
||||
|
||||
|
||||
|
||||
vmStats newStat = new vmStats();
|
||||
newStat._usedTime = info.cpuTime;
|
||||
newStat._rx = rx;
|
||||
|
|
|
|||
Loading…
Reference in New Issue