facebookarchive/network-connection-class

Calculate upload speed

jalpesh opened this issue · 2 comments

I could not figure out how to calculate the upload speed, Is there any way this is possible?

You can modify the QTagParser class to parse the tx_bytes too. https://github.com/facebook/network-connection-class/blob/master/connectionclass/src/main/java/com/facebook/network/connectionclass/QTagParser.java#L65

We don't record / calculate the upload speed because there usually aren't enough large uploads to be able to get a reliable measurement. It could be added pretty easily if your app has that requirement but most apps don't upload enough data to get a measurement we could rely on.

Thank you SeyelentEco..