summaryrefslogtreecommitdiffstats
path: root/src/rpc-server/commands/trex_rpc_cmd_stream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rpc-server/commands/trex_rpc_cmd_stream.cpp')
-rw-r--r--src/rpc-server/commands/trex_rpc_cmd_stream.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rpc-server/commands/trex_rpc_cmd_stream.cpp b/src/rpc-server/commands/trex_rpc_cmd_stream.cpp
index d08c79b5..984c3f8e 100644
--- a/src/rpc-server/commands/trex_rpc_cmd_stream.cpp
+++ b/src/rpc-server/commands/trex_rpc_cmd_stream.cpp
@@ -103,11 +103,11 @@ TrexRpcCmdAddStream::_run(const Json::Value &params, Json::Value &result) {
/* parse RX info */
const Json::Value &rx = parse_object(section, "rx_stats", result);
- stream->m_rx_check.m_enable = parse_bool(rx, "enabled", result);
+ stream->m_rx_check.m_enabled = parse_bool(rx, "enabled", result);
/* if it is enabled - we need more fields */
- if (stream->m_rx_check.m_enable) {
- stream->m_rx_check.m_stream_id = parse_int(rx, "stream_id", result);
+ if (stream->m_rx_check.m_enabled) {
+ stream->m_rx_check.m_user_id = parse_int(rx, "stream_id", result);
stream->m_rx_check.m_seq_enabled = parse_bool(rx, "seq_enabled", result);
stream->m_rx_check.m_latency = parse_bool(rx, "latency_enabled", result);
}