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>
This commit is contained in:
Jordan Yates 2025-04-17 17:00:04 +10:00 committed by Benjamin Cabé
commit 00c68722d9

View file

@ -105,6 +105,7 @@ static int tcp_upload(int sock,
k_ticks_to_us_ceil64(end_time - start_time);
results->packet_size = packet_size;
results->nb_packets_errors = nb_errors;
results->total_len = (uint64_t)nb_packets * packet_size;
if (alloc_errors > 0) {
NET_WARN("There was %u network buffer allocation "