Fix: Correctly compute Java agent list loggers response size
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Thu, 19 May 2016 19:59:50 +0000 (15:59 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 19 May 2016 22:43:14 +0000 (18:43 -0400)
commit8c207906959b7f74165febd957ac9c7472d017cd
tree375a44de2afe1e3867e279c9ff396263a331868c
parentb5eac5d48dddb45c7110bf1c5289af09630496e5
Fix: Correctly compute Java agent list loggers response size

The code was assuming that (number of characters == number of bytes),
which is not always the case!

The notions of number of bytes and data sizes only make sense when
the strings are encoded into byte arrays. The response's getBytes()
method should the only one handling these concepts.

Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/client/SessiondCommand.java
liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/client/SessiondListLoggersCommand.java
This page took 0.024837 seconds and 4 git commands to generate.