1 parent b9145be commit fc23c70Copy full SHA for fc23c70
1 file changed
services/secondary-storage/server/src/org/apache/cloudstack/storage/template/DownloadManagerImpl.java
@@ -357,7 +357,7 @@ private String postDownload(String jobId) {
357
358
int imgSizeGigs = (int)Math.ceil(_storage.getSize(td.getDownloadLocalPath()) * 1.0d / (1024 * 1024 * 1024));
359
imgSizeGigs++; // add one just in case
360
- long timeout = imgSizeGigs * installTimeoutPerGig;
+ long timeout = (long)imgSizeGigs * installTimeoutPerGig;
361
Script scr = null;
362
String script = resourceType == ResourceType.TEMPLATE ? createTmpltScr : createVolScr;
363
scr = new Script(script, timeout, s_logger);
0 commit comments