Post

Replies

Boosts

Views

Activity

When calculating upload speed, ifaddrs.ifa_data.ifi_obytes contains wrong value
Hello, I am trying to calculate the upload speed of my WiFi network adapter. I have noticed that the value for the sent bytes (upload) is always double the expected value. I am running a speediest and my downstream is 30Mb/s. However, my upload speed in my app shows a little less than 8 MB/s which is actually double the value (it should be approx. 4MB/s). Playground - https://developer.apple.com/forums/content/attachment/63d94243-0f1b-426d-97bf-86a0be2dfe58 This issue can be reproduced with the attached Playground. What could be the reason for this? It does not happen with Download speed.
3
0
1.4k
May ’21