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 cb02a32
Date Sun, 12 Apr 2015 18:16:17 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 72b242262 -> cb02a32f7


findbugs: boxing/unboxing removed

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

Branch: refs/heads/master
Commit: cb02a32f792dff6ca478b4b461c0ad88b73332f3
Parents: 72b2422
Author: Daan Hoogland <dhoogland@schubergphilis.com>
Authored: Sun Apr 12 20:16:13 2015 +0200
Committer: Daan Hoogland <dhoogland@schubergphilis.com>
Committed: Sun Apr 12 20:16:13 2015 +0200

----------------------------------------------------------------------
 .../wrapper/XenServer56NetworkUsageCommandWrapper.java        | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/cb02a32f/plugins/hypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/wrapper/XenServer56NetworkUsageCommandWrapper.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/wrapper/XenServer56NetworkUsageCommandWrapper.java
b/plugins/hypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/wrapper/XenServer56NetworkUsageCommandWrapper.java
index 0e3f922..9132aa1 100644
--- a/plugins/hypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/wrapper/XenServer56NetworkUsageCommandWrapper.java
+++ b/plugins/hypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/wrapper/XenServer56NetworkUsageCommandWrapper.java
@@ -21,13 +21,14 @@ package com.cloud.hypervisor.xenserver.resource.wrapper;
 
 import org.apache.log4j.Logger;
 
+import com.xensource.xenapi.Connection;
+
 import com.cloud.agent.api.Answer;
 import com.cloud.agent.api.NetworkUsageAnswer;
 import com.cloud.agent.api.NetworkUsageCommand;
 import com.cloud.hypervisor.xenserver.resource.XenServer56Resource;
 import com.cloud.resource.CommandWrapper;
 import com.cloud.utils.ExecutionResult;
-import com.xensource.xenapi.Connection;
 
 public final class XenServer56NetworkUsageCommandWrapper extends CommandWrapper<NetworkUsageCommand,
Answer, XenServer56Resource> {
 
@@ -87,8 +88,8 @@ public final class XenServer56NetworkUsageCommandWrapper extends CommandWrapper<
                     final String[] splitResult = detail.split(":");
                     int i = 0;
                     while (i < splitResult.length - 1) {
-                        stats[0] += new Long(splitResult[i++]).longValue();
-                        stats[1] += new Long(splitResult[i++]).longValue();
+                        stats[0] += Long.parseLong(splitResult[i++]);
+                        stats[1] += Long.parseLong(splitResult[i++]);
                     }
                     return new NetworkUsageAnswer(command, "success", stats[0], stats[1]);
                 }


Mime
View raw message