Page 1 of 1

Traffic Calculation Confusion

Posted: Fri Mar 17, 2017 5:57 pm
by claudi
Hello community. I hope you have an answer which clarifies my confusion about how to calculate the traffic in the right way. I am reading the bytes_received variable and want to calculate the traffic used. Now I read at least 5 articles about Kibibyte and Kilobyte stuff and when I thought I got it the other article tells something else.

My question is: Do I have to use binary basis (2^x) and divide by 1024 or decimal basis (10^x) and divide by 1000 to calculate the traffic from the bytes stored in the variable? Thank you for your help!

Re: Traffic Calculation Confusion

Posted: Fri Mar 17, 2017 6:16 pm
by TinCanTech
claudi wrote:I am reading the bytes_received variable and want to calculate the traffic used. Now I read at least 5 articles about Kibibyte and Kilobyte stuff
Openvpn provides bytes .. Calculate your exponent as is appropriate to you .. :ugeek: