bug 8866: ignore network usage for system account

This commit is contained in:
kishan 2011-04-27 19:44:52 +05:30
parent 341e553b8a
commit 42a9c49712

View File

@ -668,7 +668,7 @@ public class VirtualNetworkApplianceManagerImpl implements VirtualNetworkApplian
String publicIp = st.nextToken();
//Find the account owning the IP
IPAddressVO ipaddress = _ipAddressDao.findByIpAddress(publicIp);
if(ipaddress == null){
if(ipaddress == null || ipaddress.getAccountId() == Account.ACCOUNT_ID_SYSTEM){
continue;
}
Long bytesSent = new Long(st.nextToken());