From fff50f26076b36362293b61f5ac43f950f350843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Henning?= <soeren.henning@email.uni-kiel.de> Date: Fri, 11 Mar 2022 15:41:45 +0100 Subject: [PATCH] Fix timeunit --- .../benchmarks/loadgenerator/EnvVarLoadGeneratorFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theodolite-benchmarks/load-generator-commons/src/main/java/rocks/theodolite/benchmarks/loadgenerator/EnvVarLoadGeneratorFactory.java b/theodolite-benchmarks/load-generator-commons/src/main/java/rocks/theodolite/benchmarks/loadgenerator/EnvVarLoadGeneratorFactory.java index 3772e3b03..5801b850a 100644 --- a/theodolite-benchmarks/load-generator-commons/src/main/java/rocks/theodolite/benchmarks/loadgenerator/EnvVarLoadGeneratorFactory.java +++ b/theodolite-benchmarks/load-generator-commons/src/main/java/rocks/theodolite/benchmarks/loadgenerator/EnvVarLoadGeneratorFactory.java @@ -125,7 +125,7 @@ class EnvVarLoadGeneratorFactory { final long timeoutMs = Integer.parseInt(Objects.requireNonNullElse( System.getenv(ConfigurationKeys.HTTP_TIMEOUT_MS), Long.toString(LoadGenerator.HTTP_TIMEOUT_MS_DEFAULT))); - recordSender = new HttpRecordSender<>(url, async, Duration.ofSeconds(timeoutMs)); + recordSender = new HttpRecordSender<>(url, async, Duration.ofMillis(timeoutMs)); LOGGER.info("Use HTTP server as target with URL '{}' and asynchronously: '{}'.", url, async); } else if (target == LoadGeneratorTarget.PUBSUB) { final String project = System.getenv(ConfigurationKeys.PUBSUB_PROJECT); -- GitLab