summaryrefslogtreecommitdiffstats
path: root/src/rpc-server/commands
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2017-01-24 15:23:33 +0200
committerHanoh Haim <hhaim@cisco.com>2017-01-24 15:23:50 +0200
commite0d56a1aca1c7ea63070d92fb0d4bf2806f98dbb (patch)
treefbb980d42026dca0624b15854d9d13f7447bdee5 /src/rpc-server/commands
parent415852536c1aaedd6df672af20a30cea0908ce15 (diff)
fix STL-85 GUI issue
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
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();