From e0d56a1aca1c7ea63070d92fb0d4bf2806f98dbb Mon Sep 17 00:00:00 2001 From: Hanoh Haim Date: Tue, 24 Jan 2017 15:23:33 +0200 Subject: fix STL-85 GUI issue Signed-off-by: Hanoh Haim --- src/rpc-server/commands/trex_rpc_cmd_stream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rpc-server/commands') 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 ¶ms, 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(); -- cgit 1.2.3-korg