diff --git a/Kitodo-ImageManagement/src/main/java/org/kitodo/imagemanagement/ConvertRunner.java b/Kitodo-ImageManagement/src/main/java/org/kitodo/imagemanagement/ConvertRunner.java index 0423b162e5c..22993c63a28 100644 --- a/Kitodo-ImageManagement/src/main/java/org/kitodo/imagemanagement/ConvertRunner.java +++ b/Kitodo-ImageManagement/src/main/java/org/kitodo/imagemanagement/ConvertRunner.java @@ -51,7 +51,7 @@ class ConvertRunner { /** * Default timeout. */ - private static final int DEFAULT_TIMEOUT_MINS = (int) TimeUnit.MINUTES.convert(2, TimeUnit.HOURS); + private static final int DEFAULT_TIMEOUT_SECS = (int) TimeUnit.SECONDS.convert(2, TimeUnit.HOURS); /** * {@code convert} command, optionally with full path. @@ -72,7 +72,7 @@ void run(IMOperation commandLine) throws IOException { OutputStream outAndErr = new ByteArrayOutputStream(); executor.setStreamHandler(new PumpStreamHandler(outAndErr)); - long timeoutMillis = 1000L * KitodoConfig.getIntParameter(ParameterImageManagement.TIMEOUT_SEC, DEFAULT_TIMEOUT_MINS); + long timeoutMillis = 1000L * KitodoConfig.getIntParameter(ParameterImageManagement.TIMEOUT_SEC, DEFAULT_TIMEOUT_SECS); executor.setWatchdog(new ExecuteWatchdog(timeoutMillis)); CommandLine command;