How to get Net upload and download speed in the API?

I was wondering if there’s any way to get the upload and download speeds through the API, instead of NET TX and NET RX. I am using XML RPC to get through opennebula 5.0.2.
I guess it should be possible since sunstone displays the data. Let me know to where is the data is stored or how to get that data?

Hi,

Unfortunately that data is not stored, the speed is calculated in sunstone from the TX and RX values.

1 Like

Thank you for the reply. I just want to know how they are calculating net upload and download speed from TX and RX values? Is like this: by dividing the TX and RX values by 8

The relevant code is here: