Skip to content

Commit 0307eff

Browse files
author
Edison Su
committed
fix the wrong md5sum check
1 parent 66e3387 commit 0307eff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎core/src/com/cloud/storage/template/DownloadManagerImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ private String computeCheckSum(File f) {
297297
}
298298
byte[] md5sum = digest.digest();
299299
BigInteger bigInt = new BigInteger(1, md5sum);
300-
checksum = String.format("%032x",bigInt.toString(16));
300+
checksum = String.format("%032x",bigInt);
301301
return checksum;
302302
}catch(IOException e) {
303303
return null;

0 commit comments

Comments
 (0)