diff options
author | 2016-12-04 11:30:08 +0200 | |
---|---|---|
committer | 2016-12-04 11:30:34 +0200 | |
commit | c2e0fc656cb6b3e34939dbe2b9495282f6fd0f53 (patch) | |
tree | 6f66d8c3a91e5b445c685cd77055511cd2011875 /src | |
parent | 4477491bf7d052d9d140508e645b673f7dc87a65 (diff) |
test breakage due to incorrect speed calculation
Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/trex_port_attr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trex_port_attr.cpp b/src/trex_port_attr.cpp index 53ae19d8..61e88585 100644 --- a/src/trex_port_attr.cpp +++ b/src/trex_port_attr.cpp @@ -119,7 +119,7 @@ TRexPortAttr::to_json(Json::Value &output) { output["src_mac"] = utl_macaddr_to_str(get_src_mac()); output["promiscuous"]["enabled"] = get_promiscuous(); output["link"]["up"] = is_link_up(); - output["speed"] = get_link_speed(); + output["speed"] = get_link_speed() / 1000; // make sure we have no cards of less than 1 Gbps output["rx_filter_mode"] = get_rx_filter_mode(); if (get_src_ipv4() != 0) { |