summaryrefslogtreecommitdiffstats
path: root/src/rpc-server/commands
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2015-12-07 09:08:02 -0500
committerimarom <imarom@cisco.com>2015-12-07 09:09:59 -0500
commit0fc30adae2fc5708baef74d36e97a174b078f332 (patch)
tree74257f2c4ac243d387ca78d25210520d4d572e31 /src/rpc-server/commands
parent3c87156e57ba46fa725ed19bd33ca8b26afa25f7 (diff)
added 'dry' option to start command
this enables showing a profile map before starting
Diffstat (limited to 'src/rpc-server/commands')
-rw-r--r--src/rpc-server/commands/trex_rpc_cmd_stream.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpc-server/commands/trex_rpc_cmd_stream.cpp b/src/rpc-server/commands/trex_rpc_cmd_stream.cpp
index 1e8328dc..fa3d96b2 100644
--- a/src/rpc-server/commands/trex_rpc_cmd_stream.cpp
+++ b/src/rpc-server/commands/trex_rpc_cmd_stream.cpp
@@ -619,6 +619,7 @@ TrexRpcCmdValidate::_run(const Json::Value &params, Json::Value &result) {
result["result"]["rate"]["max_pps"] = graph->get_max_pps();
result["result"]["rate"]["max_line_util"] = graph->get_max_bps() / port->get_port_speed_bps();
+ result["result"]["graph"]["expected_duration"] = graph->get_duration();
result["result"]["graph"]["events_count"] = (int)graph->get_events().size();
result["result"]["graph"]["events"] = Json::arrayValue;