Skip to content

Commit c3396f7

Browse files
committed
dpdk: fix value is null exception
1 parent a453575 commit c3396f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lisa/microsoft/testsuites/dpdk/dpdkperf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ def _send_pps_unified_perf_messages(
473473
test_case_name=test_case_name,
474474
tool=tool,
475475
metric_name=cast(str, metric["name"]),
476-
metric_value=cast(float, metric["value"]),
476+
metric_value=cast(float, metric.get("value", 0.0)),
477477
metric_unit=cast(str, metric["unit"]),
478478
metric_str_value=cast(str, metric.get("str_value", "")),
479479
metric_relativity=cast(MetricRelativity, metric["relativity"]),

0 commit comments

Comments
 (0)