Skip to content

Commit 797fb20

Browse files
committed
- removed copy paste error
1 parent 67db405 commit 797fb20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sampling-message-server/src/main/java/de/dhbw/ravensburg/verteiltesysteme/server/util/ServerCommandLineParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ public static ServiceConfig fromCliArgs(final CommandLine commandLine) {
6666

6767
final Long maxNameLength = commandLine.hasOption("name-length") ? Long.valueOf(commandLine.getOptionValue("name-length")) : ServiceConfig.DEFAULT_MAXIMUM_SAMPLING_MESSAGE_NAME_SIZE;
6868
final Long maxContentLength = commandLine.hasOption("content-length") ? Long.valueOf(commandLine.getOptionValue("content-length")) : ServiceConfig.DEFAULT_MAXIMUM_SAMPLING_MESSAGE_CONTENT_SIZE;
69-
final Long maxMessageCount = commandLine.hasOption("content-length") ? Long.valueOf(commandLine.getOptionValue("content-length")) : ServiceConfig.DEFAULT_MAXIMUM_SAMPLING_MESSAGE_COUNT;
70-
final Integer serverPort = commandLine.hasOption("content-length") ? Integer.valueOf(commandLine.getOptionValue("content-length")) : ServiceConfig.DEFAULT_SERVICE_ENDPOINT_PORT;
69+
final Long maxMessageCount = commandLine.hasOption("message-count") ? Long.valueOf(commandLine.getOptionValue("message-count")) : ServiceConfig.DEFAULT_MAXIMUM_SAMPLING_MESSAGE_COUNT;
70+
final Integer serverPort = commandLine.hasOption("port") ? Integer.valueOf(commandLine.getOptionValue("port")) : ServiceConfig.DEFAULT_SERVICE_ENDPOINT_PORT;
7171

7272
return new ServiceConfig(maxNameLength, maxContentLength, maxMessageCount, serverPort);
7373
}

0 commit comments

Comments
 (0)