X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=GPL%2Ftools%2Ftrex%2Ftrex_astf_profile.py;fp=GPL%2Ftools%2Ftrex%2Ftrex_astf_profile.py;h=44d81e92f958ea64f8a926101855a8890d87329f;hp=ccda573bf42ed629898e23c0b05dfde49465cb31;hb=e5dbe10d9599b9a53fa07e6fadfaf427ba6d69e3;hpb=c6dfb6c09c5dafd1d522f96b4b86c5ec5efc1c83 diff --git a/GPL/tools/trex/trex_astf_profile.py b/GPL/tools/trex/trex_astf_profile.py index ccda573bf4..44d81e92f9 100644 --- a/GPL/tools/trex/trex_astf_profile.py +++ b/GPL/tools/trex/trex_astf_profile.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 -# Copyright (c) 2022 Cisco and/or its affiliates. +# Copyright (c) 2023 Cisco and/or its affiliates. # # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # @@ -222,7 +222,7 @@ def simple_burst( print(u"##### Statistics #####") print(json.dumps(stats, indent=4, separators=(u",", u": "))) - approximated_duration = list(sorted(stats.keys()))[-1] + approximated_duration = duration + list(sorted(stats.keys()))[-1] stats = stats[sorted(stats.keys())[-1]] lost_a = stats[port_0][u"opackets"] - stats[port_1][u"ipackets"] lost_b = stats[port_1][u"opackets"] - stats[port_0][u"ipackets"]