You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2015/06/22 10:54:31 UTC

git commit: updated refs/heads/master to a17852a

Repository: cloudstack
Updated Branches:
  refs/heads/master 0d8c64ea5 -> a17852aaf


Fix findbugs DM_BOXED_PRIMITIVE_FOR_PARSING warning in ElastistorUtil.java

Signed-off-by: Daan Hoogland <da...@gmail.com>

This closes #504


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

Branch: refs/heads/master
Commit: a17852aaf443549877a6813b69c445aab57e6444
Parents: 0d8c64e
Author: Rafael da Fonseca <rs...@gmail.com>
Authored: Mon Jun 22 00:42:37 2015 +0200
Committer: Daan Hoogland <da...@gmail.com>
Committed: Mon Jun 22 10:54:19 2015 +0200

----------------------------------------------------------------------
 .../apache/cloudstack/storage/datastore/util/ElastistorUtil.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a17852aa/plugins/storage/volume/cloudbyte/src/org/apache/cloudstack/storage/datastore/util/ElastistorUtil.java
----------------------------------------------------------------------
diff --git a/plugins/storage/volume/cloudbyte/src/org/apache/cloudstack/storage/datastore/util/ElastistorUtil.java b/plugins/storage/volume/cloudbyte/src/org/apache/cloudstack/storage/datastore/util/ElastistorUtil.java
index 35c51d8..58ee9f0 100644
--- a/plugins/storage/volume/cloudbyte/src/org/apache/cloudstack/storage/datastore/util/ElastistorUtil.java
+++ b/plugins/storage/volume/cloudbyte/src/org/apache/cloudstack/storage/datastore/util/ElastistorUtil.java
@@ -2491,7 +2491,7 @@ public class ElastistorUtil {
          String quotasize = null;
 
          if(size > 1024){
-            quotasize = (String.valueOf(Long.valueOf(capacityBytes)/(1024)) + "T");
+            quotasize = (String.valueOf(Long.parseLong(capacityBytes)/(1024)) + "T");
          }else{
             quotasize = String.valueOf(quotasize) + "G";
          }