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:46:19 +0000 (18:46 -0400)
commita9299d47744dac7a17940f93d478894e9da4788b
treede0da405d0ac526997b29365a25b8663b15dc1fe
parentf75ae862b52c985f9e395a295e332b7fecf24056
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.030962 seconds and 4 git commands to generate.