Correct Types in printf (#345)

This commit is contained in:
dp111
2023-03-10 21:43:08 +00:00
committed by GitHub
parent 1d136651f9
commit e44703136f

View File

@@ -59,8 +59,8 @@ static void iperf_report(void *arg, enum lwiperf_report_type report_type,
uint32_t mbytes = bytes_transferred / 1024 / 1024;
float mbits = bandwidth_kbitpsec / 1000.0;
total_iperf_megabytes += mbytes;
printf("Completed iperf transfer of %d MBytes @ %.1f Mbits/sec\n", mbytes, mbits);
printf("Total iperf megabytes since start %d Mbytes\n", total_iperf_megabytes);
printf("Completed iperf transfer of %u MBytes @ %.1f Mbits/sec\n", mbytes, mbits);
printf("Total iperf megabytes since start %u Mbytes\n", total_iperf_megabytes);
}
#endif