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 a17852a
Date Mon, 22 Jun 2015 08:54:31 GMT
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 <daan.hoogland@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 <rsafonseca@gmail.com>
Authored: Mon Jun 22 00:42:37 2015 +0200
Committer: Daan Hoogland <daan.hoogland@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";
          }


Mime
View raw message