You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "wengzhe (via GitHub)" <gi...@apache.org> on 2023/07/12 09:16:40 UTC

[GitHub] [nuttx-apps] wengzhe commented on a diff in pull request #1454: netutils: iperf: Fix the transfer bytes and the bandwidth overflow

wengzhe commented on code in PR #1454:
URL: https://github.com/apache/nuttx-apps/pull/1454#discussion_r1260874210


##########
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:
   Hi, @masayuki2009, have you ever triggered this problem (`inf`) these days? I found it still re-producing on my side with newest master, and tried to fix it by https://github.com/apache/nuttx/pull/9794.



-- 
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-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org