From: Ondrej Lichtner olichtne@redhat.com
Aparently when testing udp_stream, the "sum_received" key isn't defined and data is reported slightly differently. Instead the total duration can also be accessed from the "sum" subdictionary.
Signed-off-by: Ondrej Lichtner olichtne@redhat.com --- lnst/RecipeCommon/Perf/Measurements/IperfFlowMeasurement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lnst/RecipeCommon/Perf/Measurements/IperfFlowMeasurement.py b/lnst/RecipeCommon/Perf/Measurements/IperfFlowMeasurement.py index e52f262..87ef70f 100644 --- a/lnst/RecipeCommon/Perf/Measurements/IperfFlowMeasurement.py +++ b/lnst/RecipeCommon/Perf/Measurements/IperfFlowMeasurement.py @@ -187,5 +187,5 @@ def _parse_job_cpu(self, job): else: cpu_percent = job.result["data"]["end"]["cpu_utilization_percent"]["host_total"] job_start = job.result["data"]["start"]["timestamp"]["timesecs"] - duration = job.result["data"]["end"]["sum_received"]["seconds"] + duration = job.result["data"]["end"]["sum"]["seconds"] return PerfInterval(cpu_percent*duration, duration, "cpu_percent", job_start)
On Thu, Jan 28, 2021 at 03:13:54PM +0100, olichtne@redhat.com wrote:
From: Ondrej Lichtner olichtne@redhat.com
Aparently when testing udp_stream, the "sum_received" key isn't defined and data is reported slightly differently. Instead the total duration can also be accessed from the "sum" subdictionary.
Signed-off-by: Ondrej Lichtner olichtne@redhat.com
lnst/RecipeCommon/Perf/Measurements/IperfFlowMeasurement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lnst/RecipeCommon/Perf/Measurements/IperfFlowMeasurement.py b/lnst/RecipeCommon/Perf/Measurements/IperfFlowMeasurement.py index e52f262..87ef70f 100644 --- a/lnst/RecipeCommon/Perf/Measurements/IperfFlowMeasurement.py +++ b/lnst/RecipeCommon/Perf/Measurements/IperfFlowMeasurement.py @@ -187,5 +187,5 @@ def _parse_job_cpu(self, job): else: cpu_percent = job.result["data"]["end"]["cpu_utilization_percent"]["host_total"] job_start = job.result["data"]["start"]["timestamp"]["timesecs"]
duration = job.result["data"]["end"]["sum_received"]["seconds"]
duration = job.result["data"]["end"]["sum"]["seconds"] return PerfInterval(cpu_percent*duration, duration, "cpu_percent", job_start)
-- 2.30.0
no need for review, already pushed this as a quick fix...
-Ondrej
lnst-developers@lists.fedorahosted.org