cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject git commit: updated refs/heads/master to 7246994
Date Wed, 25 Mar 2015 20:20:38 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 1552c912a -> 724699424


findbugs: boxing/unboxing

Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/72469942
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/72469942
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/72469942

Branch: refs/heads/master
Commit: 724699424ecc60c96d2994ea35cf865a9d713df9
Parents: 1552c91
Author: Daan Hoogland <dhoogland@schubergphilis.com>
Authored: Wed Mar 25 21:20:39 2015 +0100
Committer: Daan Hoogland <dhoogland@schubergphilis.com>
Committed: Wed Mar 25 21:20:39 2015 +0100

----------------------------------------------------------------------
 .../ovm3/resources/helpers/Ovm3VirtualRoutingSupport.java        | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/72469942/plugins/hypervisors/ovm3/src/main/java/com/cloud/hypervisor/ovm3/resources/helpers/Ovm3VirtualRoutingSupport.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/ovm3/src/main/java/com/cloud/hypervisor/ovm3/resources/helpers/Ovm3VirtualRoutingSupport.java
b/plugins/hypervisors/ovm3/src/main/java/com/cloud/hypervisor/ovm3/resources/helpers/Ovm3VirtualRoutingSupport.java
index 23eb86d..a9d6739 100644
--- a/plugins/hypervisors/ovm3/src/main/java/com/cloud/hypervisor/ovm3/resources/helpers/Ovm3VirtualRoutingSupport.java
+++ b/plugins/hypervisors/ovm3/src/main/java/com/cloud/hypervisor/ovm3/resources/helpers/Ovm3VirtualRoutingSupport.java
@@ -152,8 +152,8 @@ public class Ovm3VirtualRoutingSupport {
                 String[] splitResult = result.split(":");
                 int i = 0;
                 while (i < splitResult.length - 1) {
-                    stats[0] += (Long.valueOf(splitResult[i++])).longValue();
-                    stats[1] += (Long.valueOf(splitResult[i++])).longValue();
+                    stats[0] += (Long.parseLong(splitResult[i++]));
+                    stats[1] += (Long.parseLong(splitResult[i++]));
                 }
                 return new NetworkUsageAnswer(cmd, SUCCESS, stats[0],
                         stats[1]);


Mime
View raw message