You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/07/29 07:46:39 UTC

[GitHub] [cloudstack] ravening commented on a change in pull request #4741: VM has wrong network statistics with multiple nics in shared networks

ravening commented on a change in pull request #4741:
URL: https://github.com/apache/cloudstack/pull/4741#discussion_r678908181



##########
File path: usage/src/main/java/com/cloud/usage/parser/NetworkUsageParser.java
##########
@@ -80,7 +80,7 @@ public static boolean parse(AccountVO account, Date startDate, Date endDate) {
             long zoneId = usageNetwork.getZoneId();
             String key = "" + zoneId;
             if (usageNetwork.getHostId() != 0) {
-                key += "-Host" + usageNetwork.getHostId();
+                key += "-Host" + usageNetwork.getHostId() + "-Network-" + usageNetwork.getNetworkId();

Review comment:
       @DaanHoogland this was not needed for networkid 0. the issue was only for extra nics.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org