summaryrefslogtreecommitdiffstats
path: root/src/rpc-server/commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/rpc-server/commands')
-rw-r--r--src/rpc-server/commands/trex_rpc_cmd_stream.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc-server/commands/trex_rpc_cmd_stream.cpp b/src/rpc-server/commands/trex_rpc_cmd_stream.cpp
index 3f73a5d7..836dc5de 100644
--- a/src/rpc-server/commands/trex_rpc_cmd_stream.cpp
+++ b/src/rpc-server/commands/trex_rpc_cmd_stream.cpp
@@ -853,13 +853,13 @@ TrexRpcCmdValidate::_run(const Json::Value &params, Json::Value &result) {
result["result"]["rate"]["max_bps_l2"] = graph->get_max_bps_l2();
result["result"]["rate"]["max_bps_l1"] = graph->get_max_bps_l1();
result["result"]["rate"]["max_pps"] = graph->get_max_pps();
- result["result"]["rate"]["max_line_util"] = (graph->get_max_bps_l1() / port->get_port_speed_bps()) * 100.0;
+ result["result"]["rate"]["max_line_util"] = (graph->get_max_bps_l1() / port->get_port_speed_bps()) * 100.01;
/* min values */
result["result"]["rate"]["min_bps_l2"] = graph->get_max_bps_l2(0);
result["result"]["rate"]["min_bps_l1"] = graph->get_max_bps_l1(0);
result["result"]["rate"]["min_pps"] = graph->get_max_pps(0);
- result["result"]["rate"]["min_line_util"] = (graph->get_max_bps_l1(0) / port->get_port_speed_bps()) * 100.0;
+ result["result"]["rate"]["min_line_util"] = (graph->get_max_bps_l1(0) / port->get_port_speed_bps()) * 100.01;
result["result"]["graph"]["expected_duration"] = graph->get_duration();
result["result"]["graph"]["events_count"] = (int)graph->get_events().size();