Wei Zhou created CLOUDSTACK-2545:
------------------------------------
Summary: Inconsistent unit of network statistics between js and
kvm plugin
Key: CLOUDSTACK-2545
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2545
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Affects Versions: 4.1.0, 4.2.0
Reporter: Wei Zhou
Assignee: Wei Zhou
Priority: Minor
Fix For: 4.1.0
when convert bytes to KBs in kvm plugin (LibvirtComputingResource.java)
stats.setNetworkReadKBs(deltarx / 1000);
stats.setNetworkWriteKBs(deltatx / 1000);
But on cloudstack ui (ui/scripts/instances.js)
networkkbsread: (jsonObj.networkkbsread == null)? "N/A":
cloudStack.converters.convertBytes(jsonObj.networkkbsread * 1024),
networkkbswrite: (jsonObj.networkkbswrite == null)? "N/A":
cloudStack.converters.convertBytes(jsonObj.networkkbswrite * 1024)
It means, if the real value is 1000, the display on cloudstack ui will be 1024.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira