You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by al...@apache.org on 2012/08/12 03:28:51 UTC

[23/31] git commit: fix the wrong md5sum check

fix the wrong md5sum check


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

Branch: refs/heads/vpc
Commit: 0307effcfa25c1ed4f4e642a0167b5376cdec140
Parents: 66e3387
Author: Edison Su <di...@gmail.com>
Authored: Fri Aug 10 17:32:44 2012 -0700
Committer: Edison Su <di...@gmail.com>
Committed: Fri Aug 10 17:32:44 2012 -0700

----------------------------------------------------------------------
 .../storage/template/DownloadManagerImpl.java      |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/0307effc/core/src/com/cloud/storage/template/DownloadManagerImpl.java
----------------------------------------------------------------------
diff --git a/core/src/com/cloud/storage/template/DownloadManagerImpl.java b/core/src/com/cloud/storage/template/DownloadManagerImpl.java
index a8e0db2..cd4b30d 100755
--- a/core/src/com/cloud/storage/template/DownloadManagerImpl.java
+++ b/core/src/com/cloud/storage/template/DownloadManagerImpl.java
@@ -297,7 +297,7 @@ public class DownloadManagerImpl implements DownloadManager {
             }       
             byte[] md5sum = digest.digest();
             BigInteger bigInt = new BigInteger(1, md5sum);
-            checksum = String.format("%032x",bigInt.toString(16));
+            checksum = String.format("%032x",bigInt);
             return checksum;
         }catch(IOException e) {
         	return null;