xiaoxiang781216 commented on code in PR #1454: URL: https://github.com/apache/nuttx-apps/pull/1454#discussion_r1045654815
########## netutils/iperf/iperf.c: ########## @@ -267,9 +267,10 @@ static void iperf_report_task(FAR void *arg) printf("%7.2lf-%7.2lf sec %10ju Bytes %7.2f Mbits/sec\n", ts_diff(&last, &start), ts_diff(&now, &start), - now_len, - (((double)(now_len - last_len) * 8) / - ts_diff(&now, &last) / 1e6)); + now_len -last_len, + (double)((now_len - last_len) * 8 / 1000000) / Review Comment: should we cast to double before divide 1000000? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org