Skip to content

Commit 00c6872

Browse files
JordanYateskartben
authored andcommitted
net: lib: zperf: TCP uploader: populate total_len
Populate the `total_len` field of the output results. Signed-off-by: Jordan Yates <jordan@embeint.com>
1 parent 6ce5199 commit 00c6872

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

subsys/net/lib/zperf/zperf_tcp_uploader.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ static int tcp_upload(int sock,
105105
k_ticks_to_us_ceil64(end_time - start_time);
106106
results->packet_size = packet_size;
107107
results->nb_packets_errors = nb_errors;
108+
results->total_len = (uint64_t)nb_packets * packet_size;
108109

109110
if (alloc_errors > 0) {
110111
NET_WARN("There was %u network buffer allocation "

0 commit comments

Comments
 (0)