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:
parent
6ce51997e7
commit
00c68722d9
1 changed files with 1 additions and 0 deletions
|
@ -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 "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue